ForExpr constructor

ForExpr(
  1. VarDecl? init,
  2. ASTNode? condition,
  3. ASTNode? increment,
  4. BlockStmt loop, {
  5. bool hasBracket = false,
  6. bool isBlock = false,
  7. HTSource? source,
  8. int line = 0,
  9. int column = 0,
  10. int offset = 0,
  11. int length = 0,
})

Implementation

ForExpr(
  this.init,
  this.condition,
  this.increment,
  this.loop, {
  this.hasBracket = false,
  super.isBlock,
  super.source,
  super.line = 0,
  super.column = 0,
  super.offset = 0,
  super.length = 0,
}) : super(
        InternalIdentifier.forExpression,
        isAwait: (init?.isAwait ?? false) ||
            (condition?.isAwait ?? false) ||
            (increment?.isAwait ?? false) ||
            loop.isAwait,
      );