Parser class

Constructors

Parser()

Properties

current int
getter/setter pair
errors List<ParseError>
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokens List<Token>
getter/setter pair

Methods

advance() Token
anonymousFunction() AstNode
assignment() AstNode
block() Block
breakStatement() AstNode
call() AstNode
check(TokenType type) bool
comparison() AstNode
consume(TokenType type, String message) Token
declaration() AstNode
equality() AstNode
error(Token token, String message) Exception
expression() AstNode
expressionStatement() AstNode
factor() AstNode
finishCall(AstNode callee) AstNode
flutterParameter() AstNode
flutterWidgetDeclaration() AstWidget
forStatement() AstNode
functionDeclaration() AstNode
ifStatement() AstNode
isAtEnd() bool
listOrSetLiteral() AstNode
logicalAnd() AstNode
logicalOr() AstNode
mapLiteral() AstNode
match(List<TokenType> types) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parameterValue() AstNode
parse(List<Token> tokens) List<AstNode>
parseAsync(List<Token> tokens) Future<List<AstNode>>
parseCrossAxisAlignment(Token name) CrossAxisAlignment
parseEdgeInsets(Token name) EdgeInsets
parseMainAxisAlignment(Token name) MainAxisAlignment
peek() Token
previous() Token
primary() AstNode
reset() → void
returnStatement() AstNode
statement() AstNode
synchronize() → void
synchronizeToNextDeclaration() → void
term() AstNode
toString() String
A string representation of this object.
inherited
unary() AstNode
varDeclaration() AstNode
whileStatement() AstNode

Operators

operator ==(Object other) bool
The equality operator.
inherited