TreeSitterScmHighlightQueryCompiler class final
Compiles the structurally safe subset of a Tree-sitter highlights.scm
query into the Dart query model.
Literal/node/field patterns, negated fields, sibling forests and anchors,
node quantifiers, cross-capture comparisons, local properties, and the
pinned text-predicate dialects are compiled directly. #set! priority
metadata is retained so overlapping captures can be resolved compatibly
with Tree-sitter highlighting clients.
Constructors
-
TreeSitterScmHighlightQueryCompiler({Map<
String, List< supertypeRelations = const {}})String> > -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
supertypeRelations
→ Map<
String, List< String> > -
final
Methods
-
compile(
String source, {Map< String, String> fallbackCaptures = const {}, TreeSitterLanguageTable? language, bool preserveAnonymousLiterals = false, bool validateLanguage = true}) → TreeSitterQuery -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited