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} )
]
If the last read offset is strictly greater than start
, position tree
to position spanning from start
to last read offset, with given point.
If the last read offset is strictly greater than start
, position tree
to position spanning from start
to last read offset, with given point.
If the last offset is less than or equal to start, the tree t
did not
consume any source for its construction. In this case, don't position it yet,
but wait for its position to be determined by setChildPositions
when the
parent node is positioned.
Positions tree.
Positions tree.
If t
does not have a position yet, set its position to the given one.
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.