42 references to Where
CSharpSyntaxGenerator (1)
SourceGenerator.cs (1)
52var syntaxXmlFiles = context.AdditionalTextsProvider.Where(at => Path.GetFileName(at.Path) == "Syntax.xml").Collect();
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
RequestDelegateGenerator.cs (2)
34.Where(static endpoint => endpoint != null) 51.Where(endpoint => endpoint.Diagnostics.Count == 0)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (4)
HubClientProxyGenerator.cs (2)
18.Where(static m => m is not null) 24.Where(static m => m is not null);
HubServerProxyGenerator.cs (2)
18.Where(static m => m is not null) 24.Where(static m => m is not null);
Microsoft.CodeAnalysis (1)
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithSimpleName.cs (1)
109.Where(static tuple => tuple.Item2.Length > 0)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
SourceGeneration\GeneratorDriverTests.cs (3)
2556.Where(static c => c is not null)!; 4057.Where(static (node) => node.Modifiers.Any(SyntaxKind.PartialKeyword)) 4214.Where(info => info != null)
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Roslyn4.0.cs (1)
32.Where(static m => m is not null);
Microsoft.Extensions.Options.SourceGeneration (1)
Generator.cs (1)
25.Where(static m => m.TypeSyntax is not null);
Microsoft.Gen.ComplianceReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
67.Where(t => t is not null)
Microsoft.Gen.ContextualOptions (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
67.Where(t => t is not null)
Microsoft.Gen.Logging (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
67.Where(t => t is not null)
Microsoft.Gen.Metrics (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
67.Where(t => t is not null)
Microsoft.Gen.MetricsReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
67.Where(t => t is not null)
Microsoft.Interop.ComInterfaceGenerator (6)
ComInterfaceGenerator.cs (1)
44.Where(
VtableIndexStubGenerator.cs (5)
45.Where( 55var methodsToGenerate = methodsWithDiagnostics.Where(static data => data.Diagnostic is null); 56var invalidMethodDiagnostics = methodsWithDiagnostics.Where(static data => data.Diagnostic is not null); 80.Where(data => data.VtableIndexData.Direction is MarshalDirection.ManagedToUnmanaged or MarshalDirection.Bidirectional) 94.Where(data => data.VtableIndexData.Direction is MarshalDirection.UnmanagedToManaged or MarshalDirection.Bidirectional);
Microsoft.Interop.JavaScript.JSImportGenerator (4)
JSExportGenerator.cs (2)
52var methodsToGenerate = methodsWithDiagnostics.Where(static data => data.Diagnostic is null); 53var invalidMethodDiagnostics = methodsWithDiagnostics.Where(static data => data.Diagnostic is not null);
JSImportGenerator.cs (2)
50var methodsToGenerate = methodsWithDiagnostics.Where(static data => data.Diagnostic is null); 51var invalidMethodDiagnostics = methodsWithDiagnostics.Where(static data => data.Diagnostic is not null);
Microsoft.Interop.LibraryImportGenerator (1)
LibraryImportGenerator.cs (1)
50.Where(
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
49.Where(
Microsoft.Interop.SourceGeneration (7)
DiagnosticOr.cs (4)
121var values = provider.Where(x => x.HasValue).Select(static (x, ct) => x.Value); 122var diagnostics = provider.Where(x => x.HasDiagnostic).SelectMany(static (x, ct) => x.Diagnostics); 141var values = provider.Where(x => x.Item1.HasValue).Select(static (x, ct) => (x.Item1.Value, x.Item2)); 142var diagnostics = provider.Where(x => x.Item1.HasDiagnostic).SelectMany(static (x, ct) => x.Item1.Diagnostics);
IncrementalGeneratorInitializationContextExtensions.cs (3)
38.Where(valid => valid) 55context.RegisterSourceOutput(diagnostics.Where(diag => diag is not null), (context, diagnostic) => 63context.RegisterSourceOutput(diagnostics.Where(diag => diag is not null), (context, diagnostic) =>
Microsoft.Maui.Controls.BindingSourceGen (1)
BindingSourceGenerator.cs (1)
33 .Where(static binding => !binding.HasDiagnostics)
Microsoft.Maui.Controls.SourceGen (2)
CodeBehindGenerator.cs (2)
48 .Where(static p => p?.Kind == "Xaml") 53 .Where(static p => p?.Kind == "Css")
System.Private.CoreLib.Generators (1)
EventSourceGenerator.cs (1)
45.Where(x => x is not null);
System.Text.RegularExpressions.Generator (1)
RegexGenerator.cs (1)
64.Where(static m => m is not null)