Consume one token of the specified type, or signal an error if it is not there.
Consume one token of the specified type, or signal an error if it is not there.
The offset at the start of the token to accept
Annotation ::= TypeName [(
AnnotationArgument {,
AnnotationArgument} )
]
CompilationUnit ::= [package QualId semi] TopStatSeq
Convert (qual)ident to type identifier
Translate names in Select/Ident nodes to type names.
Parse a sequence of field declarations, separated by commas.
Parse a sequence of field declarations, separated by commas.
This one is tricky because a comma might also appear in an
initializer. Since we don't parse initializers we don't know
what the comma signifies.
We solve this with a second list buffer maybe
which contains
potential variable definitions.
Once we have reached the end of the statement, we know whether
these potential definitions are real or not.
The offset where the last syntax error was reported, or if a skip to a safepoint occurred afterwards, the offset of the safe point.
The offset where the last syntax error was reported, or if a skip to a safepoint occurred afterwards, the offset of the safe point.
This is the general parse entry point.
This is the general parse entry point. Overridden by ScriptParser
skip parent or brace enclosed sequence of things
Unconditionally issue an error at given position, without updating lastErrorOffset.
Unconditionally issue an error at given position, without updating lastErrorOffset.
Issue an error at given offset if beyond last error offset and update lastErrorOffset.
Issue an error at given offset if beyond last error offset and update lastErrorOffset.
Throws an UnsupportedOperationException
with the given method name.
Throws an UnsupportedOperationException
with the given method name.