Debian Codegraph @

debian/patches/update-to-regexp-tree-0.1.24.patch

raw symbols SCIP
1 Descriptionscip-debian debian node-regexp-match-indices 1.0.2~git20190823-2 node-regexp-match-indices/patches/`update-to-regexp-tree-0.1.24.patch`#Description.: update to regexp-tree 0.1.24
2 Authorscip-debian debian node-regexp-match-indices 1.0.2~git20190823-2 node-regexp-match-indices/patches/`update-to-regexp-tree-0.1.24.patch`#Author.: Yadd <[email protected]scip-debian . . . identity/`[email protected]`.>
3 Forwardedscip-debian debian node-regexp-match-indices 1.0.2~git20190823-2 node-regexp-match-indices/patches/`update-to-regexp-tree-0.1.24.patch`#Forwarded.: not-needed
4 Last-Updatescip-debian debian node-regexp-match-indices 1.0.2~git20190823-2 node-regexp-match-indices/patches/`update-to-regexp-tree-0.1.24.patch`#Last-Update.: 2023-05-08
5
6 --- a/external.d.tsscip-debian debian node-regexp-match-indices 1.0.2~git20190823-2 node-regexp-match-indices/upstream/`external.d.ts`:
7 +++ /dev/nullscip-debian debian node-regexp-match-indices 1.0.2~git20190823-2 node-regexp-match-indices/upstream/`/dev/null`:
8 @@ -1,296 +0,0 @@
9 -import * as rp from "regexp-tree";
10 -import * as ast from "regexp-tree/ast";
11 -
12 -declare module "regexp-tree/ast" {
13 - type AstNode = AstTypes[keyof AstTypes];
14 -
15 - interface AstTypes {
16 - "RegExp": AstRegExp;
17 - "Disjunction": Disjunction;
18 - "Alternative": Alternative;
19 - "Assertion": Assertion;
20 - "Char": Char;
21 - "CharacterClass": CharacterClass;
22 - "ClassRange": ClassRange;
23 - "Backreference": Backreference;
24 - "Group": Group;
25 - "Repetition": Repetition;
26 - "Quantifier": Quantifier;
27 - }
28 -
29 - namespace AstPath {
30 - interface RegExp {
31 - node: ast.AstRegExp;
32 - parentPath: null;
33 - parent: null;
34 - property: null;
35 - index: null;
36 - getParent(): null;
37 - setChild<T extends ast.Expression>(node: T, index: null | undefined, property: "body"): AstPath<T>;
38 - setChild(node: null, index: null | undefined, property: "body"): null;
39 - setChild<T extends ast.Expression>(node: T | null, index: null | undefined, property: "body"): AstPath<T> | null;
40 - getChild(n?: number): AstPath<ast.Expression> | null;
41 - getPreviousSibling(): null;
42 - getNextSibling(): null;
43 - update(nodeProps: Partial<ast.AstRegExp>): void;
44 - remove(): void;
45 - isRemoved(): boolean;
46 - hasEqualSource(path: AstPath<ast.AstNode>): boolean;
47 - jsonEncode(options?: { format?: string | number, useLoc?: boolean }): string;
48 - }
49 - interface Disjunction {
50 - node: ast.Disjunction;
51 - parent: ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition | null;
52 - parentPath: AstPath<ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition> | null;
53 - property: string | null;
54 - index: number | null;
55 - getParent(): AstPath<ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition> | null;
56 - setChild<T extends ast.Expression>(node: T, index: number, property?: "expressions"): AstPath<T>;
57 - setChild(node: null, index: number, property?: "expressions"): null;
58 - setChild<T extends ast.Expression>(node: T | null, index: number, property?: "expressions"): AstPath<T> | null;
59 - appendChild<T extends ast.Expression>(node: T, property?: "expressions"): AstPath<T>;
60 - appendChild(node: null, property?: "expressions"): null;
61 - appendChild<T extends ast.Expression>(node: T | null, property?: "expressions"): AstPath<T> | null;
62 - insertChildAt<T extends ast.Expression>(node: T | null, index: number, property?: "expressions"): void;
63 - getChild(n?: number): AstPath<ast.Expression> | null;
64 - getPreviousSibling(): AstPath<ast.Expression> | null;
65 - getNextSibling(): AstPath<ast.Expression> | null;
66 - replace<T extends ast.Expression>(node: T): AstPath<T> | null;
67 - update(nodeProps: Partial<ast.Disjunction>): void;
68 - remove(): void;
69 - isRemoved(): boolean;
70 - hasEqualSource(path: AstPath<ast.AstNode>): boolean;
71 - jsonEncode(options?: { format?: string | number, useLoc?: boolean }): string;
72 - }
73 - interface Alternative {
74 - node: ast.Alternative;
75 - parent: ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition | null;
76 - parentPath: AstPath<ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition> | null;
77 - property: string | null;
78 - index: number | null;
79 - getParent(): AstPath<ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition> | null;
80 - setChild<T extends ast.Expression>(node: T, index: number, property?: "expressions"): AstPath<T>;
81 - appendChild<T extends ast.Expression>(node: T, property?: "expressions"): AstPath<T>;
82 - getChild(n?: number): AstPath<ast.Expression>;
83 - getPreviousSibling(): AstPath<ast.Expression> | null;
84 - getNextSibling(): AstPath<ast.Expression> | null;
85 - replace<T extends ast.Expression>(node: T): AstPath<T> | null;
86 - update(nodeProps: Partial<ast.Alternative>): void;
87 - remove(): void;
88 - isRemoved(): boolean;
89 - hasEqualSource(path: AstPath<ast.AstNode>): boolean;
90 - jsonEncode(options?: { format?: string | number, useLoc?: boolean }): string;
91 - }
92 - interface Assertion {
93 - node: ast.Assertion;
94 - parent: ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition | null;
95 - parentPath: AstPath<ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition> | null;
96 - property: string | null;
97 - index: number | null;
98 - getParent(): AstPath<ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition> | null;
99 - setChild<T extends ast.Expression>(node: T, index: null | undefined, property: "assertion"): AstPath<T>;
100 - setChild(node: null, index: null | undefined, property: "assertion"): null;
101 - setChild<T extends ast.Expression>(node: T | null, index: null | undefined, property: "assertion"): AstPath<T> | null;
102 - getPreviousSibling(): AstPath<ast.Expression> | null;
103 - getNextSibling(): AstPath<ast.Expression> | null;
104 - replace<T extends ast.Expression>(node: T): AstPath<T> | null;
105 - update(nodeProps: Partial<ast.Assertion>): void;
106 - remove(): void;
107 - isRemoved(): boolean;
108 - hasEqualSource(path: AstPath<ast.AstNode>): boolean;
109 - jsonEncode(options?: { format?: string | number, useLoc?: boolean }): string;
110 - }
111 - interface Char {
112 - node: ast.Char;
113 - parent: ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition | ast.CharacterClass | ast.ClassRange | null;
114 - parentPath: AstPath<ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition | ast.CharacterClass | ast.ClassRange> | null;
115 - property: string | null;
116 - index: number | null;
117 - getParent(): AstPath<ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition | ast.CharacterClass | ast.ClassRange> | null;
118 - getPreviousSibling(): AstPath<ast.Expression | ast.ClassRange> | null;
119 - getNextSibling(): AstPath<ast.Expression | ast.ClassRange> | null;
120 - replace<T extends ast.Expression | ast.ClassRange>(node: T): AstPath<T> | null;
121 - update(nodeProps: Partial<ast.Char>): void;
122 - remove(): void;
123 - isRemoved(): boolean;
124 - hasEqualSource(path: AstPath<ast.AstNode>): boolean;
125 - jsonEncode(options?: { format?: string | number, useLoc?: boolean }): string;
126 - }
127 - interface CharacterClass {
128 - node: ast.CharacterClass;
129 - parent: ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition | null;
130 - parentPath: AstPath<ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition> | null;
131 - property: string | null;
132 - index: number | null;
133 - getParent(): AstPath<ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition> | null;
134 - setChild<T extends ast.Char | ast.ClassRange>(node: T, index: number, property?: "expressions"): AstPath<T>;
135 - appendChild<T extends ast.Char | ast.ClassRange>(node: T, property?: "expressions"): AstPath<T>;
136 - insertChildAt<T extends ast.Char | ast.ClassRange>(node: T, index: number, property?: "expressions"): void;
137 - getChild(n?: number): AstPath<ast.Char | ast.ClassRange>;
138 - getPreviousSibling(): AstPath<ast.Expression> | null;
139 - getNextSibling(): AstPath<ast.Expression> | null;
140 - replace<T extends ast.Expression>(node: T): AstPath<T> | null;
141 - update(nodeProps: Partial<ast.CharacterClass>): void;
142 - remove(): void;
143 - isRemoved(): boolean;
144 - hasEqualSource(path: AstPath<ast.AstNode>): boolean;
145 - jsonEncode(options?: { format?: string | number, useLoc?: boolean }): string;
146 - }
147 - interface ClassRange {
148 - node: ast.ClassRange;
149 - parent: ast.CharacterClass | null;
150 - parentPath: AstPath<ast.CharacterClass> | null;
151 - property: string | null;
152 - index: number | null;
153 - getParent(): AstPath<ast.CharacterClass> | null;
154 - setChild(node: ast.Char, index: null | undefined, property: "from" | "to"): AstPath<ast.Char>;
155 - getPreviousSibling(): AstPath<ast.Char | ast.ClassRange> | null;
156 - getNextSibling(): AstPath<ast.Char | ast.ClassRange> | null;
157 - replace<T extends ast.Char | ast.ClassRange>(node: T): AstPath<T> | null;
158 - update(nodeProps: Partial<ast.ClassRange>): void;
159 - remove(): void;
160 - isRemoved(): boolean;
161 - hasEqualSource(path: AstPath<ast.AstNode>): boolean;
162 - jsonEncode(options?: { format?: string | number, useLoc?: boolean }): string;
163 - }
164 - interface Backreference {
165 - node: ast.Backreference;
166 - parent: ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition | null;
167 - parentPath: AstPath<ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition> | null;
168 - property: string | null;
169 - index: number | null;
170 - getParent(): AstPath<ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition> | null;
171 - getPreviousSibling(): AstPath<ast.Expression> | null;
172 - getNextSibling(): AstPath<ast.Expression> | null;
173 - replace<T extends ast.Expression>(node: T): AstPath<T> | null;
174 - update(nodeProps: Partial<ast.Backreference>): void;
175 - remove(): void;
176 - isRemoved(): boolean;
177 - hasEqualSource(path: AstPath<ast.AstNode>): boolean;
178 - jsonEncode(options?: { format?: string | number, useLoc?: boolean }): string;
179 - }
180 - interface Group {
181 - node: ast.Group;
182 - parent: ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition | null;
183 - parentPath: AstPath<ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition> | null;
184 - property: string | null;
185 - index: number | null;
186 - getParent(): AstPath<ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition> | null;
187 - setChild<T extends ast.Expression>(node: T, index: null | undefined, property?: "expression"): AstPath<T>;
188 - setChild(node: null, index: null | undefined, property?: "expression"): null;
189 - setChild<T extends ast.Expression>(node: T | null, index: null | undefined, property?: "expression"): AstPath<T> | null;
190 - getChild(n?: 0): AstPath<ast.Expression> | null;
191 - getPreviousSibling(): AstPath<ast.Expression> | null;
192 - getNextSibling(): AstPath<ast.Expression> | null;
193 - replace<T extends ast.Expression>(node: T): AstPath<T> | null;
194 - update(nodeProps: Partial<ast.Group>): void;
195 - remove(): void;
196 - isRemoved(): boolean;
197 - hasEqualSource(path: AstPath<ast.AstNode>): boolean;
198 - jsonEncode(options?: { format?: string | number, useLoc?: boolean }): string;
199 - }
200 - interface Repetition {
201 - node: ast.Repetition;
202 - parent: ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition | null;
203 - parentPath: AstPath<ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition> | null;
204 - property: string | null;
205 - index: number | null;
206 - getParent(): AstPath<ast.AstRegExp | ast.Disjunction | ast.Alternative | ast.Assertion | ast.Group | ast.Repetition> | null;
207 - setChild<T extends ast.Expression>(node: T, index: null | undefined, property?: "expression"): AstPath<T>;
208 - setChild<T extends ast.Quantifier>(node: T, index: null | undefined, property: "quantifier"): AstPath<T>;
209 - getChild(n?: 0): AstPath<ast.Expression> | null;
210 - getPreviousSibling(): AstPath<ast.Expression> | null;
211 - getNextSibling(): AstPath<ast.Expression> | null;
212 - replace<T extends ast.Expression>(node: T): AstPath<T> | null;
213 - update(nodeProps: Partial<ast.Repetition>): void;
214 - remove(): void;
215 - isRemoved(): boolean;
216 - hasEqualSource(path: AstPath<ast.AstNode>): boolean;
217 - jsonEncode(options?: { format?: string | number, useLoc?: boolean }): string;
218 - }
219 - interface Quantifier {
220 - node: ast.Quantifier;
221 - parent: ast.Repetition | null;
222 - parentPath: AstPath<ast.Repetition> | null;
223 - property: string | null;
224 - index: number | null;
225 - getParent(): AstPath<ast.Repetition> | null;
226 - getPreviousSibling(): null;
227 - getNextSibling(): null;
228 - replace<T extends ast.Quantifier>(node: T): AstPath<T> | null;
229 - update(nodeProps: Partial<ast.Quantifier>): void;
230 - remove(): void;
231 - isRemoved(): boolean;
232 - hasEqualSource(path: AstPath<ast.AstNode>): boolean;
233 - jsonEncode(options?: { format?: string | number, useLoc?: boolean }): string;
234 - }
235 - }
236 -
237 - interface AstPathTypes {
238 - "RegExp": AstPath.RegExp;
239 - "Disjunction": AstPath.Disjunction;
240 - "Alternative": AstPath.Alternative;
241 - "Assertion": AstPath.Assertion;
242 - "Char": AstPath.Char;
243 - "CharacterClass": AstPath.CharacterClass;
244 - "ClassRange": AstPath.ClassRange;
245 - "Backreference": AstPath.Backreference;
246 - "Group": AstPath.Group;
247 - "Repetition": AstPath.Repetition;
248 - "Quantifier": AstPath.Quantifier;
249 - }
250 -
251 - type AstPath<T extends AstNode = AstNode> = AstPathTypes[T["type"]];
252 -}
253 -
254 -declare module "regexp-tree" {
255 - type TraversalCallback<T extends ast.AstNode = ast.AstNode, TraversalKind extends "Ast" | "AstPath" = "AstPath"> = {
256 - Ast: (node: T, parent: ast.AstPath<T>["parent"] | null, prop?: string, index?: number) => void | boolean;
257 - AstPath: (path: ast.AstPath<T>) => void | boolean;
258 - }[TraversalKind];
259 -
260 - type TraversalCallbacks<T extends ast.AstNode = ast.AstNode, TraversalKind extends "Ast" | "AstPath" = "AstPath"> = {
261 - pre?: TraversalCallback<T, TraversalKind>;
262 - post?: TraversalCallback<T, TraversalKind>;
263 - };
264 -
265 - type Traversal<T extends ast.AstNode = ast.AstNode, TraversalKind extends "Ast" | "AstPath" = "AstPath"> =
266 - TraversalCallback<T, TraversalKind> | TraversalCallbacks<T, TraversalKind>;
267 -
268 - type CommonTraversalHandlers<T extends ast.AstNode, TraversalKind extends "Ast" | "AstPath" = "AstPath"> = {
269 - "*"?: TraversalCallback<ast.AstNode, TraversalKind>;
270 - shouldRun?(ast: T): boolean;
271 - init?(ast: T): void;
272 - };
273 -
274 - type SpecificTraversalHandlers<TraversalKind extends "Ast" | "AstPath" = "AstPath"> = {
275 - [N in keyof ast.AstTypes]?: Traversal<ast.AstTypes[N], TraversalKind>;
276 - };
277 -
278 - type TraversalHandlers<T extends ast.AstNode = ast.AstNode, TraversalKind extends "Ast" | "AstPath" = "AstPath"> =
279 - & CommonTraversalHandlers<T, TraversalKind>
280 - & SpecificTraversalHandlers<TraversalKind>;
281 -
282 - type TransformHandlers<T extends ast.AstNode = ast.AstNode> = TraversalHandlers<T, "AstPath">;
283 -
284 - class TransformResult<T extends ast.AstNode, E = unknown> {
285 - private _ast;
286 - private _source;
287 - private _string;
288 - private _regexp;
289 - private _extra;
290 - constructor(ast: T, extra?: E);
291 - getAST(): T;
292 - setExtra(extra: E): void;
293 - getExtra(): E;
294 - toRegExp(): RegExp;
295 - getSource(): string;
296 - getFlags(): string;
297 - toString(): string;
298 - }
299 -
300 - function traverse<T extends ast.AstNode>(ast: T, handlers: TraversalHandlers<T, "Ast"> | ReadonlyArray<TraversalHandlers<T, "Ast">>, options: { TraversalKind: true }): void;
301 - function traverse<T extends ast.AstNode>(ast: T, handlers: TraversalHandlers<T, "AstPath"> | ReadonlyArray<TraversalHandlers<T, "AstPath">>, options?: { TraversalKind?: false }): void;
302 - function transform<T extends ast.AstNode>(ast: T, handlers: TransformHandlers<T> | ReadonlyArray<TransformHandlers<T>>): TransformResult<T>;
303 - function transform(regexp: string | RegExp, handlers: TransformHandlers<ast.AstRegExp> | ReadonlyArray<TransformHandlers<ast.AstRegExp>>): TransformResult<ast.AstRegExp>;
304 -}
305 \ No newline at end of file
306 --- a/tsconfig.build.jsonscip-debian debian node-regexp-match-indices 1.0.2~git20190823-2 node-regexp-match-indices/upstream/`tsconfig.build.json`:
307 +++ b/tsconfig.build.jsonscip-debian debian node-regexp-match-indices 1.0.2~git20190823-2 node-regexp-match-indices/upstream/`tsconfig.build.json`:
308 @@ -4,7 +4,6 @@
309 "noEmit": false
310 },
311 "files": [
312 - "external.d.ts",
313 "auto.ts",
314 "config.ts",
315 "implementation.ts",
316 @@ -17,4 +16,4 @@
317 ],
318 "include": [],
319 "exclude": ["__tests__/**/*.ts"]
320 -}
321 \ No newline at end of file
322 +}
323 --- a/tsconfig.jsonscip-debian debian node-regexp-match-indices 1.0.2~git20190823-2 node-regexp-match-indices/upstream/`tsconfig.json`:
324 +++ b/tsconfig.jsonscip-debian debian node-regexp-match-indices 1.0.2~git20190823-2 node-regexp-match-indices/upstream/`tsconfig.json`:
325 @@ -3,7 +3,6 @@
326 "module": "commonjs",
327 "target": "es2015",
328 "lib": ["es2015", "es2018.regexp"],
329 - "types": ["jest-extended", "jest-expect-message"],
330 "outDir": ".",
331 "sourceMap": true,
332 "inlineSources": true,
333 @@ -30,4 +29,4 @@
334 "exclude": [
335 "__tests__/**/*.d.ts"
336 ]
337 -}
338 \ No newline at end of file
339 +}