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

Method push

src/tokenizer.ts:79–90  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

77 }
78
79 push(token): void {
80 if (token.type === Token.Punctuator || token.type === Token.Keyword) {
81 if (token.value === '{') {
82 this.curly = this.values.length;
83 } else if (token.value === '(') {
84 this.paren = this.values.length;
85 }
86 this.values.push(token.value);
87 } else {
88 this.values.push(null);
89 }
90 }
91
92}
93

Callers 15

processFunction · 0.80
generateFunction · 0.80
unit-tests.jsFile · 0.80
runTokenizerTestsFunction · 0.80
collectFunction · 0.80
api-tests.jsFile · 0.80
runParserTestsFunction · 0.80
flattenFunction · 0.80
eqFunction · 0.80
backbone-1.1.0.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected