MCPcopy Index your code
hub / github.com/Macuyiko/minecraft-python / isReserved

Function isReserved

ServerEditorWeb/ace/worker-javascript.js:2404–2426  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

2402 }
2403
2404 function isReserved(token) {
2405 if (!token.reserved) {
2406 return false;
2407 }
2408 var meta = token.meta;
2409
2410 if (meta && meta.isFutureReservedWord && state.option.inES5()) {
2411 if (!meta.es5) {
2412 return false;
2413 }
2414 if (meta.strictOnly) {
2415 if (!state.option.strict && !state.directive["use strict"]) {
2416 return false;
2417 }
2418 }
2419
2420 if (token.isProperty) {
2421 return false;
2422 }
2423 }
2424
2425 return true;
2426 }
2427
2428 function supplant(str, data) {
2429 return str.replace(/\{([^{}]*)\}/g, function (a, b) {

Callers 7

prefixFunction · 0.85
assignopFunction · 0.85
bitwiseassignopFunction · 0.85
suffixFunction · 0.85
optionalidentifierFunction · 0.85
statementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected