ForPartsImpl constructor

ForPartsImpl({
  1. required Token leftSeparator,
  2. required ExpressionImpl? condition,
  3. required Token rightSeparator,
  4. required List<ExpressionImpl>? updaters,
})

Initialize a newly created for statement. Either the variableList or the initialization must be null. Either the condition and the list of updaters can be null if the loop does not have the corresponding attribute.

Implementation

ForPartsImpl({
  required this.leftSeparator,
  required ExpressionImpl? condition,
  required this.rightSeparator,
  required List<ExpressionImpl>? updaters,
}) : _condition = condition {
  _becomeParentOf(_condition);
  _updaters._initialize(this, updaters);
}