2 instantiations of PatternTestResult
Microsoft.Extensions.FileSystemGlobbing (2)
Internal\PatternTestResult.cs (2)
12
public static readonly PatternTestResult Failed =
new
(isSuccessful: false, stem: null);
25
return new
PatternTestResult
(isSuccessful: true, stem: stem);
20 references to PatternTestResult
Microsoft.Extensions.FileSystemGlobbing (20)
Internal\IPatternContext.cs (1)
19
PatternTestResult
Test(FileInfoBase file);
Internal\MatcherContext.cs (10)
92
PatternTestResult
result = MatchPatternContexts(fileInfo, (pattern, file) => pattern.Test(file));
182
return
PatternTestResult
.Success(stem: string.Empty);
186
return
PatternTestResult
.Failed;
191
private
PatternTestResult
MatchPatternContexts<TFileInfoBase>(TFileInfoBase fileinfo, Func<IPatternContext, TFileInfoBase,
PatternTestResult
> test)
193
PatternTestResult
result =
PatternTestResult
.Failed;
198
PatternTestResult
localResult = test(context, fileinfo);
209
return
PatternTestResult
.Failed;
217
return
PatternTestResult
.Failed;
Internal\PatternContexts\PatternContext.cs (1)
17
public abstract
PatternTestResult
Test(FileInfoBase file);
Internal\PatternContexts\PatternContextLinear.cs (3)
20
public override
PatternTestResult
Test(FileInfoBase file)
29
return
PatternTestResult
.Success(CalculateStem(file));
32
return
PatternTestResult
.Failed;
Internal\PatternContexts\PatternContextRagged.cs (3)
19
public override
PatternTestResult
Test(FileInfoBase file)
28
return
PatternTestResult
.Success(CalculateStem(file));
30
return
PatternTestResult
.Failed;
Internal\PatternTestResult.cs (2)
12
public static readonly
PatternTestResult
Failed = new(isSuccessful: false, stem: null);
23
public static
PatternTestResult
Success(string? stem)