Expression class

通用 ast node

Inheritance

Constructors

Expression(AstNode? _expression, {bool? isProgram = false, bool? isIdentifier = false, bool? isPrefixedIdentifier = false, bool? isStringLiteral = false, bool? isNumericLiteral = false, bool? isBooleanLiteral = false, bool? isListLiteral = false, bool? isMapLiteral = false, bool? isMethodInvocation = false, bool? isMemberExpression = false, bool? isNamedExpression = false, bool? isVariableDeclarationList = false, bool? isBinaryExpression = false, bool? isAssignmentExpression = false, bool? isPropertyAccess = false, bool? isClassDeclaration = false, bool? isMethodDeclaration = false, bool? isReturnStatement = false, bool? isFieldDeclaration = false, bool? isFunctionExpression = false, bool? isBlockStatement = false, bool? isFunctionDeclaration = false, bool? isAwaitExpression = false, bool? isPrefixExpression = false, bool? isExpressionStatement = false, bool? isIfStatement = false, bool? isForStatement = false, bool? isSwitchStatement = false, bool? isIndexExpression = false, bool? isStringInterpolation = false, bool? isInterpolationExpression = false, bool? isVariableDeclaration = false, bool? isVariableExpression = false, bool? isFuncParam = false, bool? isTypeName = false, Map? ast})

Properties

asAssignmentExpression AssignmentExpression
no setter
asAwaitExpression AwaitExpression
no setter
asBinaryExpression BinaryExpression
no setter
asBlockStatement BlockStatement
no setter
asBooleanLiteral BooleanLiteral
no setter
asClassDeclaration ClassDeclaration
no setter
asExpression Expression
no setter
asFieldDeclaration FieldDeclaration
no setter
asForStatement ForStatement
no setter
asFunctionDeclaration FunctionDeclaration
no setter
asFunctionExpression FunctionExpression
no setter
asIdentifier Identifier
no setter
asIfStatement IfStatement
no setter
asIndexExpression IndexExpression
no setter
asInterpolationExpression InterpolationExpression
no setter
asListLiteral ListLiteral
no setter
asMapLiteral MapLiteral
no setter
asMemberExpression MemberExpression
no setter
asMethodDeclaration MethodDeclaration
no setter
asMethodInvocation MethodInvocation
no setter
asNamedExpression NamedExpression
no setter
asNumericLiteral NumericLiteral
no setter
asPrefixedIdentifier PrefixedIdentifier
no setter
asPrefixExpression PrefixExpression
no setter
asProgram Program
no setter
asPropertyAccess PropertyAccess
no setter
asReturnStatement ReturnStatement
no setter
asStringInterpolation StringInterpolation
no setter
asStringLiteral StringLiteral
no setter
asSwitchStatement SwitchStatement
no setter
asTypeNameExpression TypeName
no setter
asVariableDeclarationList VariableDeclarationList
no setter
asVariableExpression VariableExpression
no setter
hashCode int
The hash code for this object.
no setterinherited
isAssignmentExpression bool?
getter/setter pair
isAwaitExpression bool?
getter/setter pair
isBinaryExpression bool?
getter/setter pair
isBlockStatement bool?
getter/setter pair
isBooleanLiteral bool?
getter/setter pair
isClassDeclaration bool?
getter/setter pair
isExpressionStatement bool?
getter/setter pair
isFieldDeclaration bool?
getter/setter pair
isForStatement bool?
getter/setter pair
isFuncParam bool?
getter/setter pair
isFunctionDeclaration bool?
getter/setter pair
isFunctionExpression bool?
getter/setter pair
isIdentifier bool?
getter/setter pair
isIfStatement bool?
getter/setter pair
isIndexExpression bool?
getter/setter pair
isInterpolationExpression bool?
getter/setter pair
isListLiteral bool?
getter/setter pair
isMapLiteral bool?
getter/setter pair
isMemberExpression bool?
getter/setter pair
isMethodDeclaration bool?
getter/setter pair
isMethodInvocation bool?
getter/setter pair
isNamedExpression bool?
getter/setter pair
isNumericLiteral bool?
getter/setter pair
isPrefixedIdentifier bool?
getter/setter pair
isPrefixExpression bool?
getter/setter pair
isProgram bool?
getter/setter pair
isPropertyAccess bool?
getter/setter pair
isReturnStatement bool?
getter/setter pair
isStringInterpolation bool?
getter/setter pair
isStringLiteral bool?
getter/setter pair
isSwitchStatement bool?
getter/setter pair
isTypeName bool?
getter/setter pair
isVariableDeclaration bool?
getter/setter pair
isVariableDeclarationList bool?
getter/setter pair
isVariableExpression bool?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String?
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toAst() Map?
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromAst(Map? ast) Expression?