Last change
on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | import { Pattern, MicromatchOptions, PatternRe } from '../../types';
|
---|
2 | import Settings from '../../settings';
|
---|
3 | export declare type PatternSegment = StaticPatternSegment | DynamicPatternSegment;
|
---|
4 | declare type StaticPatternSegment = {
|
---|
5 | dynamic: false;
|
---|
6 | pattern: Pattern;
|
---|
7 | };
|
---|
8 | declare type DynamicPatternSegment = {
|
---|
9 | dynamic: true;
|
---|
10 | pattern: Pattern;
|
---|
11 | patternRe: PatternRe;
|
---|
12 | };
|
---|
13 | export declare type PatternSection = PatternSegment[];
|
---|
14 | export declare type PatternInfo = {
|
---|
15 | /**
|
---|
16 | * Indicates that the pattern has a globstar (more than a single section).
|
---|
17 | */
|
---|
18 | complete: boolean;
|
---|
19 | pattern: Pattern;
|
---|
20 | segments: PatternSegment[];
|
---|
21 | sections: PatternSection[];
|
---|
22 | };
|
---|
23 | export default abstract class Matcher {
|
---|
24 | private readonly _patterns;
|
---|
25 | private readonly _settings;
|
---|
26 | private readonly _micromatchOptions;
|
---|
27 | protected readonly _storage: PatternInfo[];
|
---|
28 | constructor(_patterns: Pattern[], _settings: Settings, _micromatchOptions: MicromatchOptions);
|
---|
29 | private _fillStorage;
|
---|
30 | private _getPatternSegments;
|
---|
31 | private _splitSegmentsIntoSections;
|
---|
32 | }
|
---|
33 | export {};
|
---|
Note:
See
TracBrowser
for help on using the repository browser.