84 references to SyntaxProvider
IdeCoreBenchmarks (1)
IncrementalSourceGeneratorBenchmarks.cs (1)
128var input = ctx.SyntaxProvider.ForAttributeWithMetadataName(
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
RequestDelegateGenerator.cs (1)
22var endpointsWithDiagnostics = context.SyntaxProvider.CreateSyntaxProvider(
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (4)
HubClientProxyGenerator.cs (2)
15var methodDeclaration = context.SyntaxProvider 21var memberAccessExpressions = context.SyntaxProvider
HubServerProxyGenerator.cs (2)
15var methodDeclaration = context.SyntaxProvider 21var memberAccessExpressions = context.SyntaxProvider
Microsoft.CodeAnalysis (1)
SourceGeneration\GeneratorAdaptor.cs (1)
60.Combine(context.SyntaxProvider.CreateSyntaxReceiverProvider(syntaxContextReceiverCreator))
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
818var input = ctx.SyntaxProvider.ForAttributeWithMetadataName(
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (45)
SourceGeneration\GeneratorDriverTests.cs (11)
2163var invokedMethodsProvider = ctx.SyntaxProvider 2225var invokedMethodsProvider = ctx.SyntaxProvider 2322var invokedMethodsProvider = ctx.SyntaxProvider 2441var input = ctx.SyntaxProvider.CreateSyntaxProvider(static (n, _) => n is ClassDeclarationSyntax, (gsc, _) => (ClassDeclarationSyntax)gsc.Node) 2684IncrementalValuesProvider<ClassDeclarationSyntax> classDeclarations = ctx.SyntaxProvider 3281ctx.RegisterSourceOutput(ctx.SyntaxProvider.CreateSyntaxProvider((node, ct) => node is ClassDeclarationSyntax c, (context, ct) => context.Node).WithTrackingName("Syntax"), (context, ct) => { }); 3415ctx.RegisterSourceOutput(ctx.SyntaxProvider.CreateSyntaxProvider((node, ct) => node is ClassDeclarationSyntax c, (context, ct) => context.Node).WithTrackingName("Syntax"), (context, ct) => { }); 4144var syntax = ctx.SyntaxProvider.CreateSyntaxProvider((s, _) => true, (s, _) => s.Node); 4161var syntax = ctx.SyntaxProvider.CreateSyntaxProvider((s, _) => true, (s, _) => s.Node); 4182var provider = ctx.SyntaxProvider 4330var interceptorInfos = context.SyntaxProvider.CreateSyntaxProvider(
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (8)
25return context.SyntaxProvider.ForAttributeWithSimpleName( 34return context.SyntaxProvider.ForAttributeWithMetadataName( 1027var input = ctx.SyntaxProvider.ForAttributeWithMetadataName<ClassDeclarationSyntax>( 1064var input = ctx.SyntaxProvider.ForAttributeWithMetadataName<ClassDeclarationSyntax>( 1102var input = ctx.SyntaxProvider.ForAttributeWithMetadataName<ClassDeclarationSyntax>( 1140var input = ctx.SyntaxProvider.ForAttributeWithMetadataName<ClassDeclarationSyntax>( 1178var input = ctx.SyntaxProvider.ForAttributeWithMetadataName<ClassDeclarationSyntax>( 1216var input = ctx.SyntaxProvider.ForAttributeWithMetadataName<ClassDeclarationSyntax>(
SourceGeneration\SyntaxAwareGeneratorTests.cs (26)
857var source = context.SyntaxProvider.CreateSyntaxProvider((c, _) => c is FieldDeclarationSyntax fds, (c, _) => ((FieldDeclarationSyntax)c.Node).Declaration.Variables[0].Identifier.ValueText); 897var source = context.SyntaxProvider.CreateSyntaxProvider((c, _) => c is FieldDeclarationSyntax fds, (c, _) => ((FieldDeclarationSyntax)c.Node).Declaration.Variables[0].Identifier.ValueText); 903var source2 = context.SyntaxProvider.CreateSyntaxProvider((c, _) => c is ClassDeclarationSyntax fds, (c, _) => ((ClassDeclarationSyntax)c.Node).Identifier.ValueText); 940var source = context.SyntaxProvider.CreateSyntaxProvider((c, _) => 1016var source = context.SyntaxProvider.CreateSyntaxProvider((c, _) => c is FieldDeclarationSyntax fds, (c, _) => ((FieldDeclarationSyntax)c.Node).Declaration.Variables[0].Identifier.ValueText).WithTrackingName("Fields"); 1091var source = context.SyntaxProvider.CreateSyntaxProvider((c, _) => c is FieldDeclarationSyntax fds, (c, _) => ((FieldDeclarationSyntax)c.Node).Declaration.Variables[0].Identifier.ValueText).WithTrackingName("Fields"); 1172var source = context.SyntaxProvider.CreateSyntaxProvider((c, _) => c is FieldDeclarationSyntax fds, (c, _) => ((FieldDeclarationSyntax)c.Node).Declaration.Variables[0].Identifier.ValueText); 1180var source = context.SyntaxProvider.CreateSyntaxProvider((c, _) => c is FieldDeclarationSyntax fds, (c, _) => ((FieldDeclarationSyntax)c.Node).Declaration.Variables[0].Identifier.ValueText); 1223var source = context.SyntaxProvider.CreateSyntaxProvider((c, _) => c is FieldDeclarationSyntax fds, (c, _) => ((FieldDeclarationSyntax)c.Node).Declaration.Variables[0].Identifier.ValueText).WithTrackingName("Fields"); 1306var source = context.SyntaxProvider.CreateSyntaxProvider((c, _) => c is FieldDeclarationSyntax fds, (c, _) => ((FieldDeclarationSyntax)c.Node).Declaration.Variables[0].Identifier.ValueText).WithTrackingName("Fields"); 1384var source = context.SyntaxProvider.CreateSyntaxProvider((c, _) => 1515var source = context.SyntaxProvider.CreateSyntaxProvider((c, _) => c is FieldDeclarationSyntax fds, (c, _) => ((FieldDeclarationSyntax)c.Node).Declaration.Variables[0].Identifier.ValueText); 1572var source = context.SyntaxProvider.CreateSyntaxProvider((c, _) => c is FieldDeclarationSyntax fds, (c, _) => 1623var source = context.SyntaxProvider.CreateSyntaxProvider((c, _) => c is FieldDeclarationSyntax fds, (c, _) => 1680var source = context.SyntaxProvider.CreateSyntaxProvider((c, _) => c is FieldDeclarationSyntax fds, (c, _) => 1739var source = context.SyntaxProvider.CreateSyntaxProvider((c, _) => c is FieldDeclarationSyntax fds, (c, _) => 1792var source = context.SyntaxProvider.CreateSyntaxProvider((c, _) => c is FieldDeclarationSyntax fds, (c, _) => 1858ctx.RegisterSourceOutput(ctx.SyntaxProvider.CreateSyntaxProvider((s, _) => { if (s is AssignmentExpressionSyntax) throw exception; return true; }, (c, _) => c.Node), (spc, s) => { }); 1899ctx.RegisterSourceOutput(ctx.SyntaxProvider.CreateSyntaxProvider<object>((s, _) => s is AssignmentExpressionSyntax, (c, _) => throw exception), (spc, s) => { }); 1940ctx.RegisterSourceOutput(ctx.SyntaxProvider.CreateSyntaxProvider<object>((s, _) => s is AssignmentExpressionSyntax, (c, _) => throw exception), (spc, s) => { }); 1991var step1 = ctx.SyntaxProvider.CreateSyntaxProvider((c, ct) => { filterCalled++; if (c is AssignmentExpressionSyntax) cts.Cancel(); return true; }, (a, _) => a); 2017var step1 = ctx.SyntaxProvider.CreateSyntaxProvider((c, ct) => { generatorCancelled = true; cts.Cancel(); return true; }, (a, _) => a); 2020var step2 = ctx.SyntaxProvider.CreateSyntaxProvider((c, ct) => { return true; }, (a, _) => a); 2087ctx.RegisterSourceOutput(ctx.SyntaxProvider.CreateSyntaxProvider<object>((s, _) => s is AssignmentExpressionSyntax, (c, _) => { Thread.Sleep(sleepTimeInMs); return true; }), (spc, s) => { }); 2092ctx.RegisterSourceOutput(ctx.SyntaxProvider.CreateSyntaxProvider<object>((s, _) => s is AssignmentExpressionSyntax, (c, _) => { Thread.Sleep(sleepTimeInMs); return true; }), (spc, s) => { }); 2093ctx.RegisterSourceOutput(ctx.SyntaxProvider.CreateSyntaxProvider<object>((s, _) => s is AssignmentExpressionSyntax, (c, _) => { Thread.Sleep(sleepTimeInMs); return true; }), (spc, s) => { });
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (8)
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.vb (8)
19Return context.SyntaxProvider.ForAttributeWithSimpleName( 28Return context.SyntaxProvider.ForAttributeWithMetadataName( 667Dim input = ctx.SyntaxProvider.ForAttributeWithMetadataName(Of ClassStatementSyntax)( 704Dim input = ctx.SyntaxProvider.ForAttributeWithMetadataName(Of ClassStatementSyntax)( 741Dim input = ctx.SyntaxProvider.ForAttributeWithMetadataName(Of ClassStatementSyntax)( 778Dim input = ctx.SyntaxProvider.ForAttributeWithMetadataName(Of ClassStatementSyntax)( 815Dim input = ctx.SyntaxProvider.ForAttributeWithMetadataName(Of ClassStatementSyntax)( 852Dim input = ctx.SyntaxProvider.ForAttributeWithMetadataName(Of ClassStatementSyntax)(
Microsoft.Extensions.Options.SourceGeneration (1)
Generator.cs (1)
20IncrementalValuesProvider<(TypeDeclarationSyntax? TypeSyntax, SemanticModel SemanticModel)> typeDeclarations = context.SyntaxProvider
Microsoft.Gen.ComplianceReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
63var declarations = context.SyntaxProvider
Microsoft.Gen.ContextualOptions (2)
ContextualOptionsGenerator.cs (1)
18IncrementalValuesProvider<SyntaxNode> typeDeclarations = context.SyntaxProvider
src\Generators\Shared\GeneratorUtilities.cs (1)
63var declarations = context.SyntaxProvider
Microsoft.Gen.Logging (2)
LoggingGenerator.cs (1)
19IncrementalValuesProvider<TypeDeclarationSyntax> typeDeclarations = context.SyntaxProvider
src\Generators\Shared\GeneratorUtilities.cs (1)
63var declarations = context.SyntaxProvider
Microsoft.Gen.Metrics (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
63var declarations = context.SyntaxProvider
Microsoft.Gen.MetricsReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
63var declarations = context.SyntaxProvider
Microsoft.Interop.ComInterfaceGenerator (3)
ComClassGenerator.cs (1)
23var attributedClassesOrDiagnostics = context.SyntaxProvider
ComInterfaceGenerator.cs (1)
37var attributedInterfaces = context.SyntaxProvider
VtableIndexStubGenerator.cs (1)
38var attributedMethods = context.SyntaxProvider
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSExportGenerator.cs (1)
40var attributedMethods = context.SyntaxProvider
JSImportGenerator.cs (1)
41var attributedMethods = context.SyntaxProvider
Microsoft.Interop.LibraryImportGenerator (1)
LibraryImportGenerator.cs (1)
43var attributedMethods = context.SyntaxProvider
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
42var attributedMethods = context.SyntaxProvider
Microsoft.Interop.SourceGeneration (2)
IncrementalGeneratorInitializationContextExtensions.cs (2)
19var isModuleSkipLocalsInit = context.SyntaxProvider 30var disabledRuntimeMarshalling = context.SyntaxProvider
Microsoft.Maui.Controls.BindingSourceGen (1)
BindingSourceGenerator.cs (1)
18 var bindingsWithDiagnostics = context.SyntaxProvider.CreateSyntaxProvider(
System.Private.CoreLib.Generators (1)
EventSourceGenerator.cs (1)
41context.SyntaxProvider.ForAttributeWithMetadataName(
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Roslyn4.0.cs (1)
34IncrementalValuesProvider<(ContextGenerationSpec?, ImmutableEquatableArray<DiagnosticInfo>)> contextGenerationSpecs = context.SyntaxProvider
System.Text.RegularExpressions.Generator (1)
RegexGenerator.cs (1)
48context.SyntaxProvider
System.Windows.Forms.Analyzers.CSharp (1)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ApplicationConfigurationGenerator.cs (1)
77IncrementalValuesProvider<string?> syntaxProvider = context.SyntaxProvider.CreateSyntaxProvider(
System.Windows.Forms.PrivateSourceGenerators (1)
System\Windows\Forms\SourceGenerators\EnumValidationGenerator.cs (1)
40IncrementalValuesProvider<SyntaxNode> argumentsToValidate = context.SyntaxProvider.CreateSyntaxProvider(