MCPcopy
hub / github.com/jquery/esprima / isPropertyKey

Method isPropertyKey

src/parser.ts:828–831  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

826 }
827
828 isPropertyKey(key, value) {
829 return (key.type === Syntax.Identifier && key.name === value) ||
830 (key.type === Syntax.Literal && key.value === value);
831 }
832
833 parseObjectProperty(hasProto): Node.Property {
834 const node = this.createNode();

Callers 2

parseObjectPropertyMethod · 0.95
parseClassElementMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected