refactor(web): move CaptureQuantifier definition
This commit is contained in:
parent
58662417a6
commit
e3ac504e86
3 changed files with 24 additions and 24 deletions
|
|
@ -104,18 +104,6 @@ export interface QueryCapture {
|
|||
refutedProperties?: QueryProperties;
|
||||
}
|
||||
|
||||
/** A quantifier for captures */
|
||||
export const CaptureQuantifier = {
|
||||
Zero: 0,
|
||||
ZeroOrOne: 1,
|
||||
ZeroOrMore: 2,
|
||||
One: 3,
|
||||
OneOrMore: 4
|
||||
} as const;
|
||||
|
||||
/** 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. */
|
||||
|
|
@ -134,6 +122,18 @@ export interface QueryMatch {
|
|||
refutedProperties?: QueryProperties;
|
||||
}
|
||||
|
||||
/** A quantifier for captures */
|
||||
export const CaptureQuantifier = {
|
||||
Zero: 0,
|
||||
ZeroOrOne: 1,
|
||||
ZeroOrMore: 2,
|
||||
One: 3,
|
||||
OneOrMore: 4
|
||||
} as const;
|
||||
|
||||
/** 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
|
||||
|
|
|
|||
20
lib/binding_web/web-tree-sitter.d.ts
vendored
20
lib/binding_web/web-tree-sitter.d.ts
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@
|
|||
"QueryProperties",
|
||||
"QueryPredicate",
|
||||
"QueryCapture",
|
||||
"CaptureQuantifier",
|
||||
"QueryMatch",
|
||||
"CaptureQuantifier",
|
||||
"PredicateStep",
|
||||
"Query",
|
||||
"LookaheadIterator"
|
||||
|
|
@ -48,6 +48,6 @@
|
|||
null,
|
||||
null
|
||||
],
|
||||
"mappings": ";;;;;;mBASiBA,KAAKA;;;;;;;;;;mBAYLC,KAAKA;;;;;;;;;;;;;mBAiBLC,IAAIA;;;;;;;;;;;;;;;;;cA4CTC,aAAaA;;;;cAKbC,gBAAgBA;;;;;;cAOhBC,WAAWA;;;;;;;;;;;;kBC7ENC,YAAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAmCZC,UAAUA;;;;;;;;;;;;;YAqBhBC,gBAAgBA;;;;;YAMhBC,sBAAsBA;;;;;cAMpBC,MAAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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