171 references to RegisterSourceOutput
EventSourceGenerator (1)
EventSourceGenerator.cs (1)
46
context.
RegisterSourceOutput
(eventSourceClasses, EmitSourceFile);
IdeCoreBenchmarks (1)
IncrementalSourceGeneratorBenchmarks.cs (1)
128
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
RequestDelegateGenerator.cs (1)
26
context.
RegisterSourceOutput
(endpointsWithDiagnostics, (context, endpoint) =>
Microsoft.CodeAnalysis (1)
SourceGeneration\Nodes\IIncrementalGeneratorOutputNode.cs (1)
38
/// or <see cref="IncrementalGeneratorInitializationContext.
RegisterSourceOutput
{TSource}(IncrementalValuesProvider{TSource}, Action{SourceProductionContext, TSource})"/>
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
10328
ctx.
RegisterSourceOutput
(ctx.AdditionalTextsProvider, (spc, po) =>
15449
ctx.
RegisterSourceOutput
(ctx.AdditionalTextsProvider, (spc, t) =>
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
822
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (148)
SourceGeneration\GeneratorDriverFuzzTests.cs (2)
353
context.
RegisterSourceOutput
(finalProvider, (context, text) =>
560
context.
RegisterSourceOutput
(provider, (context, text) =>
SourceGeneration\GeneratorDriverTests.cs (20)
1504
ctx.
RegisterSourceOutput
(name, (spc, n) => spc.AddSource(n, "// generated"));
1784
ctx.
RegisterSourceOutput
(ctx.AdditionalTextsProvider.Select((at, ct) => at).WithTrackingName("AdditionalTextsTransform"), (spc, at) => { });
2231
ctx.
RegisterSourceOutput
(invokedMethodsProvider, static (spc, invokedMethod) =>
2329
ctx.
RegisterSourceOutput
(invokedMethodsProvider, static (spc, invokedMethod) =>
2444
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
2839
ctx.
RegisterSourceOutput
(ctx.AdditionalTextsProvider.Select((t, _) => t.Path).WithTrackingName("Paths"), (spc, p) => { });
3028
ctx.
RegisterSourceOutput
(paths, (spc, p) => { });
3029
ctx.
RegisterSourceOutput
(contents, (spc, p) => { });
3283
ctx.
RegisterSourceOutput
(ctx.SyntaxProvider.CreateSyntaxProvider((node, ct) => node is ClassDeclarationSyntax c, (context, ct) => context.Node).WithTrackingName("Syntax"), (context, ct) => { });
3287
ctx.
RegisterSourceOutput
(ctx.AdditionalTextsProvider, (context, ct) => { });
3331
ctx.
RegisterSourceOutput
(ctx.AdditionalTextsProvider, (context, ct) => { });
3335
ctx.
RegisterSourceOutput
(ctx.AdditionalTextsProvider, (context, ct) => { });
3367
ctx.
RegisterSourceOutput
(ctx.MetadataReferencesProvider, (spc, r) => { referenceList.Add(r.Display); });
3417
ctx.
RegisterSourceOutput
(ctx.SyntaxProvider.CreateSyntaxProvider((node, ct) => node is ClassDeclarationSyntax c, (context, ct) => context.Node).WithTrackingName("Syntax"), (context, ct) => { });
3421
ctx.
RegisterSourceOutput
(ctx.AdditionalTextsProvider, (context, ct) => { });
3442
ctx.
RegisterSourceOutput
(ctx.AdditionalTextsProvider, (context, text) =>
3674
ctx.
RegisterSourceOutput
(flatArray, (_, _) => { });
4147
ctx.
RegisterSourceOutput
(syntax, (spc, c) =>
4164
ctx.
RegisterSourceOutput
(syntax, (spc, c) =>
4191
ctx.
RegisterSourceOutput
(provider, static (spc, syntax) =>
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (52)
75
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
117
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
154
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
184
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
214
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
241
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
268
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
296
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
327
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
363
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
402
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
431
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
464
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
497
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
529
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
561
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
592
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
623
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
656
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
687
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
716
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
750
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
779
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
816
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
853
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
890
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
927
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
964
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1000
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1035
ctx.
RegisterSourceOutput
(input, (spc, node) => { counter++; });
1072
ctx.
RegisterSourceOutput
(input, (spc, node) => { counter++; });
1110
ctx.
RegisterSourceOutput
(input, (spc, node) => { counter++; });
1148
ctx.
RegisterSourceOutput
(input, (spc, node) => { counter++; });
1186
ctx.
RegisterSourceOutput
(input, (spc, node) => { counter++; });
1224
ctx.
RegisterSourceOutput
(input, (spc, node) => { counter++; });
1245
ctx.
RegisterSourceOutput
(provider, static (spc, syntax) => spc.AddSource(
1337
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1383
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1417
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1458
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1506
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1538
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1579
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1621
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1657
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1704
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1751
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1794
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1842
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1895
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1954
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
2006
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.cs (46)
46
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
78
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
104
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
129
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
154
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
182
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
214
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
246
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
280
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
313
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
339
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
365
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
391
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
424
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
452
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
480
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
507
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
538
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
571
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
603
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
635
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
663
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
691
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
719
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
746
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
773
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
802
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
833
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
863
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
892
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
920
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
948
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
977
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1009
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1049
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1095
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1148
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1199
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1254
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1307
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1365
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1413
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1458
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1509
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1560
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
1621
ctx.
RegisterSourceOutput
(input, (spc, node) => { });
SourceGeneration\SyntaxAwareGeneratorTests.cs (28)
858
context.
RegisterSourceOutput
(source, (spc, fieldName) =>
898
context.
RegisterSourceOutput
(source, (spc, fieldName) =>
904
context.
RegisterSourceOutput
(source2, (spc, className) =>
949
context.
RegisterSourceOutput
(source, (spc, fieldName) =>
1017
context.
RegisterSourceOutput
(source, (spc, fieldName) =>
1092
context.
RegisterSourceOutput
(source, (spc, fieldName) =>
1173
context.
RegisterSourceOutput
(source, (spc, fieldName) =>
1181
context.
RegisterSourceOutput
(source, (spc, fieldName) =>
1224
context.
RegisterSourceOutput
(source, (spc, fieldName) =>
1307
context.
RegisterSourceOutput
(source, (spc, fieldName) =>
1396
context.
RegisterSourceOutput
(source, (spc, fieldName) =>
1517
context.
RegisterSourceOutput
(source, (spc, fieldName) =>
1581
context.
RegisterSourceOutput
(source, (spc, fieldName) => { });
1629
context.
RegisterSourceOutput
(source, (spc, fieldName) =>
1635
context.
RegisterSourceOutput
(comparerSource, (spc, fieldName) =>
1685
context.
RegisterSourceOutput
(source.Select((s, ct) => $"Output1_{s}").WithTrackingName("Output"), (spc, fieldName) =>
1689
context.
RegisterSourceOutput
(source.Select((s, ct) => $"Output2_{s}").WithTrackingName("Output"), (spc, fieldName) =>
1748
context.
RegisterSourceOutput
(source2.Select((value, ct) => value.Left.Left.Left).WithTrackingName("Output"), (spc, output) =>
1801
context.
RegisterSourceOutput
(joinedSource.Select((value, ct) => value.Left).WithTrackingName("Output"), (spc, fieldName) =>
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) => { });
1992
ctx.
RegisterSourceOutput
(step1, (spc, c) => spc.AddSource("step1", ""));
2018
ctx.
RegisterSourceOutput
(step1, (spc, c) => spc.AddSource("step1", ""));
2021
ctx.
RegisterSourceOutput
(step2, (spc, c) => spc.AddSource("step2", ""));
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.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\CompileTimeSolutionProviderTests.cs (1)
99
context.
RegisterSourceOutput
(sources, (context, s) =>
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
AbstractResxGenerator.cs (1)
189
context.
RegisterSourceOutput
(
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
GenerateFileForEachAdditionalFileWithContentsCommented.cs (1)
20
context.
RegisterSourceOutput
(context.AdditionalTextsProvider.Select((t, ct) => t).WithTrackingName(StepName), (context, additionalText) =>
Microsoft.Extensions.Validation.ValidationsGenerator (1)
ValidationsGenerator.cs (1)
65
context.
RegisterSourceOutput
(emitInputs, (context, emitInputs) =>
Microsoft.Interop.ComInterfaceGenerator (3)
ComClassGenerator.cs (1)
47
context.
RegisterSourceOutput
(classInfoType, static (context, data) =>
ComInterfaceGenerator.cs (1)
244
context.
RegisterSourceOutput
(filesToGenerate, static (context, data) =>
VtableIndexStubGenerator.cs (1)
58
context.
RegisterSourceOutput
(invalidMethodDiagnostics, static (context, invalidMethod) =>
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSExportGenerator.cs (1)
56
context.
RegisterSourceOutput
(invalidMethodDiagnostics, static (context, invalidMethod) =>
JSImportGenerator.cs (1)
57
context.
RegisterSourceOutput
(invalidMethodDiagnostics, static (context, invalidMethod) =>
Microsoft.Interop.SourceGeneration (2)
IncrementalGeneratorInitializationContextExtensions.cs (2)
55
context.
RegisterSourceOutput
(diagnostics.Where(diag => diag is not null), (context, diagnostic) =>
63
context.
RegisterSourceOutput
(diagnostics.Where(diag => diag is not null), (context, diagnostic) =>
Microsoft.Maui.Controls.BindingSourceGen (1)
BindingSourceGenerator.cs (1)
24
context.
RegisterSourceOutput
(bindingsWithDiagnostics, (spc, bindingWithDiagnostic) =>
Microsoft.Maui.Controls.SourceGen (2)
CodeBehindGenerator.cs (2)
77
initContext.
RegisterSourceOutput
(xamlSourceProvider, static (sourceProductionContext, provider) =>
85
initContext.
RegisterSourceOutput
(cssProjectItemProvider, static (sourceProductionContext, cssItem) =>
System.Private.CoreLib.Generators (1)
NativeRuntimeEventSourceGenerator.cs (1)
26
context.
RegisterSourceOutput
(combined, (spc, tuple) =>
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Roslyn4.0.cs (1)
72
context.
RegisterSourceOutput
(contextGenerationSpecs, ReportDiagnosticsAndEmitSource);