Home | History | Annotate | Download | only in script_formatter_worker

Lines Matching refs:_peek

54     _peek: function()
96 if (this._peek() === FormatterWorker.JavaScriptTokens.SEMICOLON)
113 while (this._peek() !== endToken) {
121 if (this._peek() === FormatterWorker.JavaScriptTokens.LBRACE) {
135 switch (this._peek()) {
187 while (this._peek() !== FormatterWorker.JavaScriptTokens.RBRACE) {
203 if (this._peek() === FormatterWorker.JavaScriptTokens.VAR)
217 if (this._peek() === FormatterWorker.JavaScriptTokens.ASSIGN) {
223 } while (this._peek() === FormatterWorker.JavaScriptTokens.COMMA);
229 if (this._peek() === FormatterWorker.JavaScriptTokens.COLON) {
246 if (this._peek() === FormatterWorker.JavaScriptTokens.ELSE) {
253 if (this._peek() === FormatterWorker.JavaScriptTokens.IF) {
264 var token = this._peek();
275 var token = this._peek();
286 var token = this._peek();
306 if (this._peek() === FormatterWorker.JavaScriptTokens.CASE) {
316 while (this._peek() !== FormatterWorker.JavaScriptTokens.CASE && this._peek() !== FormatterWorker.JavaScriptTokens.DEFAULT && this._peek() !== FormatterWorker.JavaScriptTokens.RBRACE) {
335 while (this._peek() !== FormatterWorker.JavaScriptTokens.RBRACE)
355 var token = this._peek();
365 token = this._peek();
406 if (this._peek() !== FormatterWorker.JavaScriptTokens.SEMICOLON) {
407 if (this._peek() === FormatterWorker.JavaScriptTokens.VAR || this._peek() === FormatterWorker.JavaScriptTokens.CONST) {
409 if (this._peek() === FormatterWorker.JavaScriptTokens.IN) {
419 if (this._peek() !== FormatterWorker.JavaScriptTokens.RPAREN) {
422 if (this._peek() !== FormatterWorker.JavaScriptTokens.SEMICOLON)
426 if (this._peek() !== FormatterWorker.JavaScriptTokens.RPAREN)
437 while (this._peek() === FormatterWorker.JavaScriptTokens.COMMA) {
447 var token = this._peek();
459 if (this._peek() === FormatterWorker.JavaScriptTokens.CONDITIONAL) {
474 var token = this._peek();
480 token = this._peek();
486 var token = this._peek();
499 var token = this._peek();
506 if (this._peek() === FormatterWorker.JavaScriptTokens.NEW)
512 switch (this._peek()) {
538 if (this._peek() === FormatterWorker.JavaScriptTokens.NEW)
546 if (this._peek() === FormatterWorker.JavaScriptTokens.FUNCTION) {
548 if (this._peek() === FormatterWorker.JavaScriptTokens.IDENTIFIER) {
557 switch (this._peek()) {
587 switch (this._peek()) {
624 while (this._peek() !== FormatterWorker.JavaScriptTokens.RBRACK) {
625 if (this._peek() !== FormatterWorker.JavaScriptTokens.COMMA)
627 if (this._peek() !== FormatterWorker.JavaScriptTokens.RBRACK) {
638 var token = this._peek();
651 while (this._peek() !== FormatterWorker.JavaScriptTokens.RBRACE) {
652 var token = this._peek();
657 if ((name === "get" || name === "set") && this._peek() !== FormatterWorker.JavaScriptTokens.COLON) {
660 if (this._peek() !== FormatterWorker.JavaScriptTokens.RBRACE) {
682 if (this._peek() !== FormatterWorker.JavaScriptTokens.RBRACE) {
704 var done = (this._peek() === FormatterWorker.JavaScriptTokens.RPAREN);
707 done = (this._peek() === FormatterWorker.JavaScriptTokens.RPAREN);
719 var done = (this._peek() === FormatterWorker.JavaScriptTokens.RPAREN);
722 done = (this._peek() === FormatterWorker.JavaScriptTokens.RPAREN);