GeneratedTreeSitterNode class final

Constructors

GeneratedTreeSitterNode({required int symbol, int? structuralSymbol, required String type, required int startByte, required int endByte, required TreeSitterTablePoint startPoint, required TreeSitterTablePoint endPoint, required bool named, required bool visible, required bool extra, int productionId = 0, int dynamicPrecedence = 0, bool missing = false, bool missingNameIsNamed = false, bool recoveryRepeat = false, int? unexpectedCharacter, List<GeneratedTreeSitterNode> children = const [], List<GeneratedTreeSitterField> fields = const [], List<GeneratedTreeSitterProductionField> productionFields = const [], int parseState = 0, int? firstLeafSymbol, int firstLeafParseState = 0, int paddingBytes = 0, TreeSitterTablePoint paddingExtent = const TreeSitterTablePoint(0, 0), int? sizeBytes, TreeSitterTablePoint? sizeExtent, int lookaheadBytes = 0, bool hasChanges = false, bool fragileLeft = false, bool fragileRight = false, bool dependsOnColumn = false, bool isKeyword = false, bool hasExternalTokens = false, List<int> externalScannerStateBefore = const <int>[], List<int> externalScannerStateAfter = const <int>[]})

Properties

acceptedErrorCost int
no setter
children List<GeneratedTreeSitterNode>
final
containsError bool
Whether this subtree contains a recovery error.
no setter
dependsOnColumn bool
final
dynamicPrecedence int
final
endByte int
final
endPoint TreeSitterTablePoint
final
errorCost int
Native ts_subtree_error_cost metadata retained for changed-range comparison. This is read-only because generated subtrees are immutable.
no setter
externalScannerStateAfter List<int>
final
externalScannerStateBefore List<int>
final
extra bool
final
fields List<GeneratedTreeSitterField>
final
firstLeafParseState int
final
firstLeafSymbol int?
final
fragileLeft bool
final
fragileRight bool
final
hasChanges bool
final
hasErrorCost bool
no setter
hasExternalTokens bool
final
hashCode int
The hash code for this object.
no setterinherited
isError bool
no setter
isKeyword bool
final
lookaheadBytes int
final
missing bool
final
missingNameIsNamed bool
final
named bool
final
paddingBytes int
final
paddingExtent TreeSitterTablePoint
final
parseState int
Parse/reuse metadata retained after the transient parse stack is gone.
final
productionFields List<GeneratedTreeSitterProductionField>
final
productionId int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizeBytes int
final
sizeExtent TreeSitterTablePoint
no setter
startByte int
final
startPoint TreeSitterTablePoint
final
structuralSymbol int
final
symbol int
final
type String
final
unexpectedCharacter int?
final
visible bool
final
visibleDescendantCount int
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
summarizedWithChildren(List<GeneratedTreeSitterNode> value) GeneratedTreeSitterNode
Rebuilds every child-derived field using ts_subtree_summarize_children's rules.
toSExpression({bool includeAll = false}) String
Native ts_subtree_string representation.
toString() String
A string representation of this object.
inherited
walk() Iterable<GeneratedTreeSitterNode>
withChildren(List<GeneratedTreeSitterNode> value) GeneratedTreeSitterNode
withEditedMetricsAndChildren({required int startByte, required int endByte, required TreeSitterTablePoint startPoint, required TreeSitterTablePoint endPoint, required int paddingBytes, required TreeSitterTablePoint paddingExtent, required int sizeBytes, required TreeSitterTablePoint sizeExtent, required bool hasChanges, required List<GeneratedTreeSitterNode> children}) GeneratedTreeSitterNode
Materializes the relative fields written by native ts_subtree_edit while preserving every non-positional subtree property.
withFields(List<GeneratedTreeSitterField> value) GeneratedTreeSitterNode
withPositionAndChildren({required int startByte, required int endByte, required TreeSitterTablePoint startPoint, required TreeSitterTablePoint endPoint, required List<GeneratedTreeSitterNode> children}) GeneratedTreeSitterNode
withSymbol(int value, TreeSitterSymbolMetadata metadata) GeneratedTreeSitterNode

Operators

operator ==(Object other) bool
The equality operator.
inherited