Statement constructor

Statement(
  1. String type, {
  2. bool isAwait = false,
  3. bool hasEndOfStmtMark = false,
  4. bool isStatement = true,
  5. bool isBlock = false,
  6. HTSource? source,
  7. int line = 0,
  8. int column = 0,
  9. int offset = 0,
  10. int length = 0,
})

Implementation

Statement(
  super.type, {
  super.isAwait,
  this.hasEndOfStmtMark = false,
  super.isStatement = true,
  super.isBlock,
  super.source,
  super.line = 0,
  super.column = 0,
  super.offset = 0,
  super.length = 0,
}) {
  if (isBlock) {
    assert(!hasEndOfStmtMark);
  }
}