TreeSitterStructuralQueryPattern constructor

const TreeSitterStructuralQueryPattern({
  1. required TreeSitterQueryNodePattern? root,
  2. int patternIndex = 0,
  3. List<TreeSitterQueryChildPattern> rootSiblings = const [],
  4. bool rootAnchorAtEnd = false,
  5. List<TreeSitterStructuralQueryPredicate> predicates = const [],
  6. int priority = 0,
  7. Map<String, String?> setProperties = const {},
  8. 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);