64 references to Where
Microsoft.AspNetCore.Razor.Language.UnitTests (21)
TagHelperCollectionTest.cs (21)
3194
var filtered = collection.
Where
(h => h.Name.StartsWith("Test", StringComparison.Ordinal));
3208
var filtered = collection.
Where
(h => h.Name.StartsWith("NonExistent", StringComparison.Ordinal));
3222
var filtered = collection.
Where
(h => h.Name.StartsWith("TagHelper", StringComparison.Ordinal));
3246
var filtered = collection.
Where
(h => h.Name.StartsWith("Test", StringComparison.Ordinal));
3267
var filtered = collection.
Where
(h => h.Name.StartsWith("Test", StringComparison.Ordinal));
3284
var filtered = collection.
Where
(h => h.Name.StartsWith("Other", StringComparison.Ordinal));
3301
var filtered = merged.
Where
(h => h.Name.StartsWith("TagHelper", StringComparison.Ordinal));
3317
var filtered = collection.
Where
(h =>
3346
var filtered = collection.
Where
(h => h.Name.Length >= 6 && h.Name.Length <= 8);
3370
.
Where
(h => h.Name.StartsWith("Test", StringComparison.Ordinal))
3371
.
Where
(h => !h.Name.EndsWith('2'));
3390
var filtered = merged.
Where
(h => h.Name.StartsWith("Keep", StringComparison.Ordinal));
3424
var filtered = collection.
Where
(h => h.Name.StartsWith("Keep", StringComparison.Ordinal));
3454
var filtered = collection.
Where
(h => h.Name.StartsWith("Keep", StringComparison.Ordinal));
3473
var filtered = collection.
Where
(h =>
3534
var filtered1 = collection1.
Where
(h =>
3539
var filtered2 = collection2.
Where
(h =>
3559
var filtered1 = collection.
Where
(h =>
3564
var filtered2 = collection.
Where
(h =>
3582
var filtered = collection.
Where
(h =>
3600
var filtered = collection.
Where
(h =>
Microsoft.AspNetCore.Razor.Microbenchmarks.Compiler (1)
TagHelperCollectionAccessBenchmark.cs (1)
115
return collection.
Where
(th => th.Name.Contains("TagHelper"));
Microsoft.CodeAnalysis.Razor.UnitTests (39)
BaseTagHelperProducerTest.cs (2)
113
var fullyQualifiedNameMatchComponents = collection.
Where
(c => c.IsFullyQualifiedNameMatch);
116
var shortNameMatchComponents = collection.
Where
(c => !c.IsFullyQualifiedNameMatch);
BindTagHelperProducerTest.cs (1)
1144
=> collection.
Where
(static t => t.Kind == TagHelperKind.Bind && !IsBuiltInComponent(t));
ComponentTagHelperProducerTest.cs (28)
53
var components = result.
Where
(c => !IsBuiltInComponent(c));
161
var components = result.
Where
(c => !IsBuiltInComponent(c));
220
var components = result.
Where
(c => !IsBuiltInComponent(c));
257
var components = result.
Where
(c => !IsBuiltInComponent(c));
292
var components = result.
Where
(c => !IsBuiltInComponent(c));
327
var components = result.
Where
(c => !IsBuiltInComponent(c));
375
var components = result.
Where
(c => !IsBuiltInComponent(c));
418
var components = result.
Where
(c => !IsBuiltInComponent(c));
461
var components = result.
Where
(c => !IsBuiltInComponent(c));
520
var components = result.
Where
(c => !IsBuiltInComponent(c));
590
var components = result.
Where
(c => !IsBuiltInComponent(c));
635
var components = result.
Where
(c => !IsBuiltInComponent(c));
692
var components = result.
Where
(c => !IsBuiltInComponent(c));
738
var components = result.
Where
(c => !IsBuiltInComponent(c));
788
var components = result.
Where
(c => !IsBuiltInComponent(c));
846
var components = result.
Where
(c => !IsBuiltInComponent(c));
898
var components = result.
Where
(c => !IsBuiltInComponent(c));
968
var components = result.
Where
(c => !IsBuiltInComponent(c));
1035
var components = result.
Where
(c => !IsBuiltInComponent(c));
1112
var components = result.
Where
(c => !IsBuiltInComponent(c));
1189
var components = result.
Where
(c => !IsBuiltInComponent(c));
1270
var components = result.
Where
(c => !IsBuiltInComponent(c));
1351
var components = result.
Where
(c => !IsBuiltInComponent(c));
1385
var childContents = components.
Where
(c => c.Kind == TagHelperKind.ChildContent).OrderBy(c => c.Name);
1438
var components = result.
Where
(c => !IsBuiltInComponent(c));
1489
var components = result.
Where
(c => !IsBuiltInComponent(c));
1592
Assert.NotEmpty(result.
Where
(f => f.TypeName == testComponent));
1593
Assert.NotEmpty(result.
Where
(f => f.TypeName == routerComponent));
DefaultTagHelperProducerTest.cs (4)
30
var editorBrowsableDescriptor = result.
Where
(descriptor => descriptor.TypeName == editorBrowsableTypeName);
57
Assert.NotEmpty(result.
Where
(f => f.TypeName == testTagHelper));
58
Assert.NotEmpty(result.
Where
(f => f.TypeName == enumTagHelper));
92
Assert.NotEmpty(result.
Where
(f => f.TypeName == enumTagHelper));
EventHandlerTagHelperProducerTest.cs (1)
340
=> collection.
Where
(static t => t.Kind == TagHelperKind.EventHandler && !IsBuiltInComponent(t));
KeyTagHelperProducerTest.cs (1)
25
var matches = result.
Where
(static result => result.Kind == TagHelperKind.Key);
RefTagHelperProducerTest.cs (1)
25
var matches = result.
Where
(static result => result.Kind == TagHelperKind.Ref);
SplatTagHelperProducerTest.cs (1)
24
var matches = result.
Where
(static result => result.Kind == TagHelperKind.Splat);
Microsoft.CodeAnalysis.Razor.Workspaces (3)
Completion\TagHelperCompletionProvider.cs (1)
178
var nonDirectiveAttributeTagHelpers = tagHelperDocumentContext.TagHelpers.
Where
(
GoToDefinition\RazorComponentDefinitionHelpers.cs (1)
79
foreach (var boundTagHelper in binding.TagHelpers.
Where
(d => !d.IsAttributeDescriptor()))
Hover\HoverFactory.cs (1)
230
.
Where
(d => keepAttributeInfo || !d.IsAttributeDescriptor())