ASTSource constructor

ASTSource({
  1. required List<ASTNode> nodes,
  2. List<ImportExportDecl> imports = const [],
  3. List<HTError> errors = const [],
  4. required HTSource? source,
  5. int line = 0,
  6. int column = 0,
  7. int offset = 0,
  8. int length = 0,
})

Implementation

ASTSource({
  required this.nodes,
  this.imports = const [],
  this.errors = const [],
  required super.source,
  super.line = 0,
  super.column = 0,
  super.offset = 0,
  super.length = 0,
}) : super(Semantic.source, isStatement: true) {
  // for (final decl in imports) {
  //   decl.parent = this;
  // }
  // for (final decl in nodes) {
  //   decl.parent = this;
  // }
}