diff --git a/lib/binding_web/src/query.ts b/lib/binding_web/src/query.ts index ac89d20d..e4cc0160 100644 --- a/lib/binding_web/src/query.ts +++ b/lib/binding_web/src/query.ts @@ -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 diff --git a/lib/binding_web/web-tree-sitter.d.ts b/lib/binding_web/web-tree-sitter.d.ts index aee86cab..b1168b26 100644 --- a/lib/binding_web/web-tree-sitter.d.ts +++ b/lib/binding_web/web-tree-sitter.d.ts @@ -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 diff --git a/lib/binding_web/web-tree-sitter.d.ts.map b/lib/binding_web/web-tree-sitter.d.ts.map index 789cfb9d..56bb49b4 100644 --- a/lib/binding_web/web-tree-sitter.d.ts.map +++ b/lib/binding_web/web-tree-sitter.d.ts.map @@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cCrENC,QAAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cCcRC,IAAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cCrBJC,IAAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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