50 references to CreateSyntaxProvider
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
RequestDelegateGenerator.cs (1)
22
var endpointsWithDiagnostics = context.SyntaxProvider.
CreateSyntaxProvider
(
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (4)
HubClientProxyGenerator.cs (2)
16
.
CreateSyntaxProvider
(static (s, _) => Parser.IsSyntaxTargetForAttribute(s),
22
.
CreateSyntaxProvider
(static (s, _) => Parser.IsSyntaxTargetForGeneration(s),
HubServerProxyGenerator.cs (2)
16
.
CreateSyntaxProvider
(static (s, _) => Parser.IsSyntaxTargetForAttribute(s),
22
.
CreateSyntaxProvider
(static (s, _) => Parser.IsSyntaxTargetForGeneration(s),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (37)
SourceGeneration\GeneratorDriverTests.cs (11)
2116
.
CreateSyntaxProvider
(
2178
.
CreateSyntaxProvider
(
2275
.
CreateSyntaxProvider
(
2393
var input = ctx.SyntaxProvider.
CreateSyntaxProvider
(static (n, _) => n is ClassDeclarationSyntax, (gsc, _) => (ClassDeclarationSyntax)gsc.Node)
2555
.
CreateSyntaxProvider
(static (s, t) => isSyntaxTargetForGeneration(s), static (context, ct) => getSemanticTargetForGeneration(context, ct))
3151
ctx.RegisterSourceOutput(ctx.SyntaxProvider.
CreateSyntaxProvider
((node, ct) => node is ClassDeclarationSyntax c, (context, ct) => context.Node).WithTrackingName("Syntax"), (context, ct) => { });
3285
ctx.RegisterSourceOutput(ctx.SyntaxProvider.
CreateSyntaxProvider
((node, ct) => node is ClassDeclarationSyntax c, (context, ct) => context.Node).WithTrackingName("Syntax"), (context, ct) => { });
4014
var syntax = ctx.SyntaxProvider.
CreateSyntaxProvider
((s, _) => true, (s, _) => s.Node);
4031
var syntax = ctx.SyntaxProvider.
CreateSyntaxProvider
((s, _) => true, (s, _) => s.Node);
4053
.
CreateSyntaxProvider
(
4200
var interceptorInfos = context.SyntaxProvider.
CreateSyntaxProvider
(
SourceGeneration\SyntaxAwareGeneratorTests.cs (26)
857
var source = context.SyntaxProvider.
CreateSyntaxProvider
((c, _) => c is FieldDeclarationSyntax fds, (c, _) => ((FieldDeclarationSyntax)c.Node).Declaration.Variables[0].Identifier.ValueText);
897
var source = context.SyntaxProvider.
CreateSyntaxProvider
((c, _) => c is FieldDeclarationSyntax fds, (c, _) => ((FieldDeclarationSyntax)c.Node).Declaration.Variables[0].Identifier.ValueText);
903
var source2 = context.SyntaxProvider.
CreateSyntaxProvider
((c, _) => c is ClassDeclarationSyntax fds, (c, _) => ((ClassDeclarationSyntax)c.Node).Identifier.ValueText);
940
var source = context.SyntaxProvider.
CreateSyntaxProvider
((c, _) =>
1016
var source = context.SyntaxProvider.
CreateSyntaxProvider
((c, _) => c is FieldDeclarationSyntax fds, (c, _) => ((FieldDeclarationSyntax)c.Node).Declaration.Variables[0].Identifier.ValueText).WithTrackingName("Fields");
1091
var source = context.SyntaxProvider.
CreateSyntaxProvider
((c, _) => c is FieldDeclarationSyntax fds, (c, _) => ((FieldDeclarationSyntax)c.Node).Declaration.Variables[0].Identifier.ValueText).WithTrackingName("Fields");
1172
var source = context.SyntaxProvider.
CreateSyntaxProvider
((c, _) => c is FieldDeclarationSyntax fds, (c, _) => ((FieldDeclarationSyntax)c.Node).Declaration.Variables[0].Identifier.ValueText);
1180
var source = context.SyntaxProvider.
CreateSyntaxProvider
((c, _) => c is FieldDeclarationSyntax fds, (c, _) => ((FieldDeclarationSyntax)c.Node).Declaration.Variables[0].Identifier.ValueText);
1223
var source = context.SyntaxProvider.
CreateSyntaxProvider
((c, _) => c is FieldDeclarationSyntax fds, (c, _) => ((FieldDeclarationSyntax)c.Node).Declaration.Variables[0].Identifier.ValueText).WithTrackingName("Fields");
1306
var source = context.SyntaxProvider.
CreateSyntaxProvider
((c, _) => c is FieldDeclarationSyntax fds, (c, _) => ((FieldDeclarationSyntax)c.Node).Declaration.Variables[0].Identifier.ValueText).WithTrackingName("Fields");
1384
var source = context.SyntaxProvider.
CreateSyntaxProvider
((c, _) =>
1515
var source = context.SyntaxProvider.
CreateSyntaxProvider
((c, _) => c is FieldDeclarationSyntax fds, (c, _) => ((FieldDeclarationSyntax)c.Node).Declaration.Variables[0].Identifier.ValueText);
1572
var source = context.SyntaxProvider.
CreateSyntaxProvider
((c, _) => c is FieldDeclarationSyntax fds, (c, _) =>
1623
var source = context.SyntaxProvider.
CreateSyntaxProvider
((c, _) => c is FieldDeclarationSyntax fds, (c, _) =>
1680
var source = context.SyntaxProvider.
CreateSyntaxProvider
((c, _) => c is FieldDeclarationSyntax fds, (c, _) =>
1739
var source = context.SyntaxProvider.
CreateSyntaxProvider
((c, _) => c is FieldDeclarationSyntax fds, (c, _) =>
1792
var source = context.SyntaxProvider.
CreateSyntaxProvider
((c, _) => c is FieldDeclarationSyntax fds, (c, _) =>
1858
ctx.RegisterSourceOutput(ctx.SyntaxProvider.
CreateSyntaxProvider
((s, _) => { if (s is AssignmentExpressionSyntax) throw exception; return true; }, (c, _) => c.Node), (spc, s) => { });
1899
ctx.RegisterSourceOutput(ctx.SyntaxProvider.
CreateSyntaxProvider
<object>((s, _) => s is AssignmentExpressionSyntax, (c, _) => throw exception), (spc, s) => { });
1940
ctx.RegisterSourceOutput(ctx.SyntaxProvider.
CreateSyntaxProvider
<object>((s, _) => s is AssignmentExpressionSyntax, (c, _) => throw exception), (spc, s) => { });
1991
var step1 = ctx.SyntaxProvider.
CreateSyntaxProvider
((c, ct) => { filterCalled++; if (c is AssignmentExpressionSyntax) cts.Cancel(); return true; }, (a, _) => a);
2017
var step1 = ctx.SyntaxProvider.
CreateSyntaxProvider
((c, ct) => { generatorCancelled = true; cts.Cancel(); return true; }, (a, _) => a);
2020
var step2 = ctx.SyntaxProvider.
CreateSyntaxProvider
((c, ct) => { return true; }, (a, _) => a);
2087
ctx.RegisterSourceOutput(ctx.SyntaxProvider.
CreateSyntaxProvider
<object>((s, _) => s is AssignmentExpressionSyntax, (c, _) => { Thread.Sleep(sleepTimeInMs); return true; }), (spc, s) => { });
2092
ctx.RegisterSourceOutput(ctx.SyntaxProvider.
CreateSyntaxProvider
<object>((s, _) => s is AssignmentExpressionSyntax, (c, _) => { Thread.Sleep(sleepTimeInMs); return true; }), (spc, s) => { });
2093
ctx.RegisterSourceOutput(ctx.SyntaxProvider.
CreateSyntaxProvider
<object>((s, _) => s is AssignmentExpressionSyntax, (c, _) => { Thread.Sleep(sleepTimeInMs); return true; }), (spc, s) => { });
Microsoft.Gen.ComplianceReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
64
.
CreateSyntaxProvider
(
Microsoft.Gen.ContextualOptions (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
64
.
CreateSyntaxProvider
(
Microsoft.Gen.Logging (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
64
.
CreateSyntaxProvider
(
Microsoft.Gen.Metrics (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
64
.
CreateSyntaxProvider
(
Microsoft.Gen.MetricsReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
64
.
CreateSyntaxProvider
(
Microsoft.Maui.Controls.BindingSourceGen (1)
BindingSourceGenerator.cs (1)
18
var bindingsWithDiagnostics = context.SyntaxProvider.
CreateSyntaxProvider
(
System.Windows.Forms.Analyzers.CSharp (1)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ApplicationConfigurationGenerator.cs (1)
77
IncrementalValuesProvider<string?> syntaxProvider = context.SyntaxProvider.
CreateSyntaxProvider
(
System.Windows.Forms.PrivateSourceGenerators (1)
System\Windows\Forms\SourceGenerators\EnumValidationGenerator.cs (1)
40
IncrementalValuesProvider<SyntaxNode> argumentsToValidate = context.SyntaxProvider.
CreateSyntaxProvider
(