withPositionAndChildren method

GeneratedTreeSitterNode withPositionAndChildren({
  1. required int startByte,
  2. required int endByte,
  3. required TreeSitterTablePoint startPoint,
  4. required TreeSitterTablePoint endPoint,
  5. required List<GeneratedTreeSitterNode> children,
})

Implementation

GeneratedTreeSitterNode withPositionAndChildren({
  required int startByte,
  required int endByte,
  required TreeSitterTablePoint startPoint,
  required TreeSitterTablePoint endPoint,
  required List<GeneratedTreeSitterNode> children,
}) => GeneratedTreeSitterNode(
  symbol: symbol,
  structuralSymbol: structuralSymbol,
  type: type,
  startByte: startByte,
  endByte: endByte,
  startPoint: startPoint,
  endPoint: endPoint,
  named: named,
  visible: visible,
  extra: extra,
  productionId: productionId,
  dynamicPrecedence: dynamicPrecedence,
  missing: missing,
  missingNameIsNamed: missingNameIsNamed,
  recoveryRepeat: _recoveryRepeat,
  unexpectedCharacter: unexpectedCharacter,
  children: children,
  fields: fields,
  productionFields: productionFields,
  parseState: parseState,
  firstLeafSymbol: firstLeafSymbol,
  firstLeafParseState: firstLeafParseState,
  paddingBytes: paddingBytes,
  paddingExtent: paddingExtent,
  sizeBytes: endByte - startByte,
  sizeExtent: TreeSitterTablePoint(
    endPoint.row - startPoint.row,
    endPoint.row == startPoint.row
        ? endPoint.column - startPoint.column
        : endPoint.column,
  ),
  lookaheadBytes: lookaheadBytes,
  hasChanges: hasChanges,
  fragileLeft: fragileLeft,
  fragileRight: fragileRight,
  dependsOnColumn: dependsOnColumn,
  isKeyword: isKeyword,
  hasExternalTokens: hasExternalTokens,
  externalScannerStateBefore: externalScannerStateBefore,
  externalScannerStateAfter: externalScannerStateAfter,
);