TreeSitterQuery constructor

const TreeSitterQuery(
  1. Map<String, String> capturesByKind, {
  2. Map<String, int> capturePatternIndicesByKind = const {},
  3. List<TreeSitterQueryPattern> contextualCaptures = const [],
  4. List<TreeSitterStructuralQueryPattern> structuralPatterns = const [],
  5. List<TreeSitterStructuralQueryPattern> matchPatterns = const [],
  6. List<int> patternStartBytes = const [],
  7. List<int> patternEndBytes = const [],
  8. List<bool> patternRooted = const [],
  9. List<String> declaredCaptureNames = const [],
  10. List<Map<String, TreeSitterCaptureQuantifier>> captureQuantifiersByPattern = const [],
  11. List<bool> patternNonLocal = const [],
  12. List<int> guaranteedStepOffsets = const [],
  13. List<bool> guaranteedStepValues = const [],
  14. List<List<TreeSitterQueryGeneralPredicate>> generalPredicatesByPattern = const [],
  15. List<List<(TreeSitterQueryProperty, bool)>> propertyPredicatesByPattern = const [],
  16. List<List<TreeSitterQueryProperty>> propertySettingsByPattern = const [],
  17. List<String> predicateStrings = const [],
  18. List<List<TreeSitterQueryPredicateStep>> predicateStepsByPattern = const [],
  19. int? patternCount,
})

Implementation

const TreeSitterQuery(
  this.capturesByKind, {
  this.capturePatternIndicesByKind = const {},
  this.contextualCaptures = const [],
  this.structuralPatterns = const [],
  this.matchPatterns = const [],
  this.patternStartBytes = const [],
  this.patternEndBytes = const [],
  this.patternRooted = const [],
  this.declaredCaptureNames = const [],
  this.captureQuantifiersByPattern = const [],
  this.patternNonLocal = const [],
  this.guaranteedStepOffsets = const [],
  this.guaranteedStepValues = const [],
  this.generalPredicatesByPattern = const [],
  this.propertyPredicatesByPattern = const [],
  this.propertySettingsByPattern = const [],
  this.predicateStrings = const [],
  this.predicateStepsByPattern = const [],
  int? patternCount,
}) : _patternCount = patternCount;