Searched refs:onToken (Results 1 – 8 of 8) sorted by relevance
/third_party/node/deps/npm/node_modules/jsonparse/ |
D | jsonparse.js | 134 if(n === 0x7b){ this.onToken(LEFT_BRACE, "{"); // { 135 }else if(n === 0x7d){ this.onToken(RIGHT_BRACE, "}"); // } 136 }else if(n === 0x5b){ this.onToken(LEFT_BRACKET, "["); // [ 137 }else if(n === 0x5d){ this.onToken(RIGHT_BRACKET, "]"); // ] 138 }else if(n === 0x3a){ this.onToken(COLON, ":"); // : 139 }else if(n === 0x2c){ this.onToken(COMMA, ","); // , 190 this.onToken(STRING, this.string); 272 this.onToken(STRING, this.string); 274 this.onToken(NUMBER, result); 289 if (buffer[i] === 0x65) { this.tState = START; this.onToken(TRUE, true); this.offset+= 3; } [all …]
|
/third_party/node/deps/npm/node_modules/minipass-json-stream/ |
D | index.js | 49 this[_onTokenOriginal] = parser.onToken 50 parser.onToken = (token, value) => this[_onToken](token, value)
|
/third_party/node/deps/npm/node_modules/jsonparse/test/ |
D | big-token.js | 12 parser.onToken = function (type, value) { function
|
D | offset.js | 56 p.onToken = function (token) { function
|
/third_party/node/deps/acorn/acorn/dist/ |
D | acorn.d.ts | 28 onToken?: ((token: Token) => any) | Token[] property
|
D | acorn.js | 389 onToken: null, property 455 if (isArray(options.onToken)) { 456 var tokens = options.onToken; 457 options.onToken = function (token) { return tokens.push(token); }; function 5127 if (this.options.onToken) 5128 { this.options.onToken(new Token(this)); }
|
D | acorn.mjs | 378 // A function can be passed as `onToken` option, which will 383 onToken: null, property 449 if (isArray(options.onToken)) { 450 var tokens = options.onToken; 451 options.onToken = function (token) { return tokens.push(token); }; function 5099 // used for the onToken callback and the external tokenizer. 5121 if (this.options.onToken) 5122 { this.options.onToken(new Token(this)); }
|
/third_party/node/deps/acorn/acorn/ |
D | README.md | 121 - **onToken**: If a function is passed for this option, each found
|