ForLoopParts class
The parts of a for or for-each loop that control the iteration.
forLoopParts ::=
VariableDeclaration ';' AstNode
? ';' expressionList?
| Expression
? ';' AstNode
? ';' expressionList?
| DeclaredIdentifier
'in' AstNode
| SimpleIdentifier 'in' AstNode
expressionList ::=
AstNode
(',' AstNode
)*
- Implemented types
Constructors
- ForLoopParts(String type, {VariableDeclarationList? variableList, AssignmentExpression? initialization, BinaryExpression? condition, AstRuntimeNode? updater, String? iterable, String? loopVariable})
Properties
- condition ↔ BinaryExpression?
-
循环判断条件
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialization ↔ AssignmentExpression?
-
初始化赋值的值
getter/setter pair
- iterable ↔ String?
-
getter/setter pair
- loopVariable ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ String
-
getter/setter pair
- updater ↔ AstRuntimeNode?
-
循环步进值
getter/setter pair
- variableList ↔ VariableDeclarationList?
-
初始化定义的值
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromAst(
Map? ast) → ForLoopParts?
Constants
- forEachPartsWithDeclaration → const String
- forPartsWithDeclarations → const String
- forPartsWithExpression → const String