| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.parser; | 8 library engine.parser; |
| 9 | 9 |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 1581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1592 * @param token the first token of the expression | 1592 * @param token the first token of the expression |
| 1593 * @return the expression that was parsed, or `null` if the tokens do not repr
esent a | 1593 * @return the expression that was parsed, or `null` if the tokens do not repr
esent a |
| 1594 * recognizable expression | 1594 * recognizable expression |
| 1595 */ | 1595 */ |
| 1596 Expression parseExpression(Token token) { | 1596 Expression parseExpression(Token token) { |
| 1597 InstrumentationBuilder instrumentation = Instrumentation.builder2("dart.engi
ne.Parser.parseExpression"); | 1597 InstrumentationBuilder instrumentation = Instrumentation.builder2("dart.engi
ne.Parser.parseExpression"); |
| 1598 try { | 1598 try { |
| 1599 _currentToken = token; | 1599 _currentToken = token; |
| 1600 return parseExpression2(); | 1600 return parseExpression2(); |
| 1601 } finally { | 1601 } finally { |
| 1602 instrumentation.log(); | 1602 instrumentation.log2(2); |
| 1603 } | 1603 } |
| 1604 } | 1604 } |
| 1605 | 1605 |
| 1606 /** | 1606 /** |
| 1607 * Parse a statement, starting with the given token. | 1607 * Parse a statement, starting with the given token. |
| 1608 * | 1608 * |
| 1609 * @param token the first token of the statement | 1609 * @param token the first token of the statement |
| 1610 * @return the statement that was parsed, or `null` if the tokens do not repre
sent a | 1610 * @return the statement that was parsed, or `null` if the tokens do not repre
sent a |
| 1611 * recognizable statement | 1611 * recognizable statement |
| 1612 */ | 1612 */ |
| 1613 Statement parseStatement(Token token) { | 1613 Statement parseStatement(Token token) { |
| 1614 InstrumentationBuilder instrumentation = Instrumentation.builder2("dart.engi
ne.Parser.parseStatement"); | 1614 InstrumentationBuilder instrumentation = Instrumentation.builder2("dart.engi
ne.Parser.parseStatement"); |
| 1615 try { | 1615 try { |
| 1616 _currentToken = token; | 1616 _currentToken = token; |
| 1617 return parseStatement2(); | 1617 return parseStatement2(); |
| 1618 } finally { | 1618 } finally { |
| 1619 instrumentation.log(); | 1619 instrumentation.log2(2); |
| 1620 } | 1620 } |
| 1621 } | 1621 } |
| 1622 | 1622 |
| 1623 /** | 1623 /** |
| 1624 * Parse a sequence of statements, starting with the given token. | 1624 * Parse a sequence of statements, starting with the given token. |
| 1625 * | 1625 * |
| 1626 * @param token the first token of the sequence of statement | 1626 * @param token the first token of the sequence of statement |
| 1627 * @return the statements that were parsed, or `null` if the tokens do not rep
resent a | 1627 * @return the statements that were parsed, or `null` if the tokens do not rep
resent a |
| 1628 * recognizable sequence of statements | 1628 * recognizable sequence of statements |
| 1629 */ | 1629 */ |
| 1630 List<Statement> parseStatements(Token token) { | 1630 List<Statement> parseStatements(Token token) { |
| 1631 InstrumentationBuilder instrumentation = Instrumentation.builder2("dart.engi
ne.Parser.parseStatements"); | 1631 InstrumentationBuilder instrumentation = Instrumentation.builder2("dart.engi
ne.Parser.parseStatements"); |
| 1632 try { | 1632 try { |
| 1633 _currentToken = token; | 1633 _currentToken = token; |
| 1634 return _parseStatementList(); | 1634 return _parseStatementList(); |
| 1635 } finally { | 1635 } finally { |
| 1636 instrumentation.log(); | 1636 instrumentation.log2(2); |
| 1637 } | 1637 } |
| 1638 } | 1638 } |
| 1639 | 1639 |
| 1640 /** | 1640 /** |
| 1641 * Set whether the parser is to parse the async support. | 1641 * Set whether the parser is to parse the async support. |
| 1642 * | 1642 * |
| 1643 * @param parseAsync `true` if the parser is to parse the async support | 1643 * @param parseAsync `true` if the parser is to parse the async support |
| 1644 */ | 1644 */ |
| 1645 void set parseAsync(bool parseAsync) { | 1645 void set parseAsync(bool parseAsync) { |
| 1646 this._parseAsync = parseAsync; | 1646 this._parseAsync = parseAsync; |
| (...skipping 7845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9492 return trampoline(target, arguments[0], arguments[1]); | 9492 return trampoline(target, arguments[0], arguments[1]); |
| 9493 case 3: | 9493 case 3: |
| 9494 return trampoline(target, arguments[0], arguments[1], arguments[2]); | 9494 return trampoline(target, arguments[0], arguments[1], arguments[2]); |
| 9495 case 4: | 9495 case 4: |
| 9496 return trampoline(target, arguments[0], arguments[1], arguments[2], argu
ments[3]); | 9496 return trampoline(target, arguments[0], arguments[1], arguments[2], argu
ments[3]); |
| 9497 default: | 9497 default: |
| 9498 throw new IllegalArgumentException("Not implemented for > 4 arguments"); | 9498 throw new IllegalArgumentException("Not implemented for > 4 arguments"); |
| 9499 } | 9499 } |
| 9500 } | 9500 } |
| 9501 } | 9501 } |
| OLD | NEW |