TreeSitterStructuralQueryPattern constructor
const
TreeSitterStructuralQueryPattern({
- required TreeSitterQueryNodePattern? root,
- int patternIndex = 0,
- List<
TreeSitterQueryChildPattern> rootSiblings = const [], - bool rootAnchorAtEnd = false,
- List<
TreeSitterStructuralQueryPredicate> predicates = const [], - int priority = 0,
- Map<
String, String?> setProperties = const {}, - Map<
String, TreeSitterQueryCaptureOffset> captureOffsets = const {},
Implementation
const TreeSitterStructuralQueryPattern({
required this.root,
this.patternIndex = 0,
this.rootSiblings = const [],
this.rootAnchorAtEnd = false,
this.predicates = const [],
this.priority = 0,
this.setProperties = const {},
this.captureOffsets = const {},
}) : assert(root != null || rootSiblings.length > 0);