IfStmt constructor

IfStmt(
  1. ASTNode condition,
  2. ASTNode thenBranch, {
  3. ASTNode? elseBranch,
  4. bool isStatement = false,
  5. bool hasEndOfStmtMark = false,
  6. HTSource? source,
  7. int line = 0,
  8. int column = 0,
  9. int offset = 0,
  10. int length = 0,
})

Implementation

IfStmt(
  this.condition,
  this.thenBranch, {
  this.elseBranch,
  super.isStatement = false,
  super.hasEndOfStmtMark = false,
  super.source,
  super.line = 0,
  super.column = 0,
  super.offset = 0,
  super.length = 0,
}) : super(Semantic.ifStmt);