| Index: compiler/java/com/google/dart/compiler/parser/AbstractParser.java
|
| diff --git a/compiler/java/com/google/dart/compiler/parser/AbstractParser.java b/compiler/java/com/google/dart/compiler/parser/AbstractParser.java
|
| index 431a057ff19b68af71286f4c8fe9abb2a408a361..cc915adf61d02f0f301eeaa6de2895e35de3f3f8 100644
|
| --- a/compiler/java/com/google/dart/compiler/parser/AbstractParser.java
|
| +++ b/compiler/java/com/google/dart/compiler/parser/AbstractParser.java
|
| @@ -99,6 +99,14 @@ abstract class AbstractParser {
|
| return TerminalAnnotationsCache.terminalsForStack(stackTrace);
|
| }
|
|
|
| + /**
|
| + * If the expectedToken is encountered it is consumed and <code>true</code> is returned.
|
| + * If the expectedToken is not found, an error is reported.
|
| + * The token will only be consumed if it is not among the set of tokens that can be handled
|
| + * by a method currently on the stack. See the {@link Terminals annotation}
|
| + *
|
| + * @param expectedToken The token to expect next in the stream.
|
| + */
|
| protected boolean expect(Token expectedToken) {
|
| if (!optional(expectedToken)) {
|
|
|
|
|