Lines Matching refs:state
67 this.state = VALUE;
90 this.onError(new Error("Unexpected " + JSON.stringify(String.fromCharCode(buffer[i])) + " at position " + i + " in state " + Parser.toknam(this.tState)));
171 return this.onError(new Error("Invalid UTF-8 character at position " + i + " in state " + Parser.toknam(this.tState)));
321 this.onError(new Error("Unexpected " + Parser.toknam(token) + (value ? ("(" + JSON.stringify(value) + ")") : "") + " in state " + Parser.toknam(this.state)));
333 if (!this.mode) { this.state = VALUE; }
336 if (this.mode) { this.state = COMMA; }
343 if(this.state === VALUE){
357 this.state = KEY;
368 this.state = VALUE;
384 }else if(this.state === KEY){
387 this.state = COLON;
393 }else if(this.state === COLON){
394 if (token === COLON) { this.state = VALUE; }
396 }else if(this.state === COMMA){
398 if (this.mode === ARRAY) { this.key++; this.state = VALUE; }
399 else if (this.mode === OBJECT) { this.state = KEY; }