MCPcopy Create free account
hub / github.com/dynjs/dynjs / isPropertyName

Method isPropertyName

src/main/java/org/dynjs/parser/js/Parser.java:392–402  ·  view source on GitHub ↗
(Token token)

Source from the content-addressed store, hash-verified

390 }
391
392 protected boolean isPropertyName(Token token) {
393 switch (token.getType()) {
394 case IDENTIFIER:
395 case DECIMAL_LITERAL:
396 case HEX_LITERAL:
397 case STRING_LITERAL:
398 return true;
399 default:
400 return isReservedWord(token);
401 }
402 }
403
404 protected boolean isAssignableName(String name) {
405 if (isFutureReservedWord(name)) {

Callers 4

propertySetMethod · 0.95
propertyGetMethod · 0.95
namedValueMethod · 0.95
memberExpressionMethod · 0.95

Calls 2

isReservedWordMethod · 0.95
getTypeMethod · 0.45

Tested by

no test coverage detected