refactor(web): move CaptureQuantifier definition

This commit is contained in:
Amaan Qureshi 2025-01-22 04:23:18 -05:00
parent 58662417a6
commit e3ac504e86
3 changed files with 24 additions and 24 deletions

View file

@ -813,16 +813,6 @@ declare module 'web-tree-sitter' {
/** The properties for predicates declared with the operator `is-not?`. */
refutedProperties?: QueryProperties;
}
/** A quantifier for captures */
export const CaptureQuantifier: {
readonly Zero: 0;
readonly ZeroOrOne: 1;
readonly ZeroOrMore: 2;
readonly One: 3;
readonly OneOrMore: 4;
};
/** A quantifier for captures */
export type CaptureQuantifier = typeof CaptureQuantifier[keyof typeof CaptureQuantifier];
/** A match of a {@link Query} to a particular set of {@link Node}s. */
export interface QueryMatch {
/** The index of the pattern that matched. */
@ -836,6 +826,16 @@ declare module 'web-tree-sitter' {
/** The properties for predicates declared with the operator `is-not?`. */
refutedProperties?: QueryProperties;
}
/** A quantifier for captures */
export const CaptureQuantifier: {
readonly Zero: 0;
readonly ZeroOrOne: 1;
readonly ZeroOrMore: 2;
readonly One: 3;
readonly OneOrMore: 4;
};
/** A quantifier for captures */
export type CaptureQuantifier = typeof CaptureQuantifier[keyof typeof CaptureQuantifier];
/**
* Predicates are represented as a single array of steps. There are two
* types of steps, which correspond to the two legal values for