YamlExternalScannerState constructor

YamlExternalScannerState({
  1. int row = 0,
  2. int column = 0,
  3. int blockImplicitRow = -1,
  4. int blockImplicitColumn = -1,
  5. int blockImplicitHasTab = 0,
  6. List<int>? indentationTypes,
  7. List<int>? indentationLengths,
})

Implementation

YamlExternalScannerState({
  this.row = 0,
  this.column = 0,
  this.blockImplicitRow = -1,
  this.blockImplicitColumn = -1,
  this.blockImplicitHasTab = 0,
  List<int>? indentationTypes,
  List<int>? indentationLengths,
}) : indentationTypes = indentationTypes ?? <int>[_rootIndent],
     indentationLengths = indentationLengths ?? <int>[-1] {
  if (this.indentationTypes.isEmpty ||
      this.indentationTypes.length != this.indentationLengths.length) {
    throw ArgumentError(
      'YAML indentation stacks must be non-empty and equal',
    );
  }
}