TreeSitterQueryPattern constructor

const TreeSitterQueryPattern({
  1. required String nodeKind,
  2. required String capture,
  3. int patternIndex = 0,
  4. String? parentKind,
  5. int? childIndex,
  6. String? fieldName,
  7. List<TreeSitterQueryPredicate> predicates = const [],
  8. int priority = 0,
  9. Map<String, String?> setProperties = const {},
})

Implementation

const TreeSitterQueryPattern({
  required this.nodeKind,
  required this.capture,
  this.patternIndex = 0,
  this.parentKind,
  this.childIndex,
  this.fieldName,
  this.predicates = const [],
  this.priority = 0,
  this.setProperties = const {},
});