ForEachPartsWithDeclarationImpl constructor

ForEachPartsWithDeclarationImpl({
  1. required DeclaredIdentifierImpl loopVariable,
  2. required Token inKeyword,
  3. required ExpressionImpl iterable,
})

Initialize a newly created for-each statement whose loop control variable is declared internally (inside the for-loop part).

Implementation

ForEachPartsWithDeclarationImpl({
  required DeclaredIdentifierImpl loopVariable,
  required super.inKeyword,
  required super.iterable,
}) : _loopVariable = loopVariable {
  _becomeParentOf(_loopVariable);
}