9 references to AddSource
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
SourceGeneration\GeneratorDriverTests.cs (7)
1671
var generator = new IncrementalGeneratorWrapper(new PipelineCallbackGenerator((ic) => ic.RegisterPostInitializationOutput(c => c.
AddSource
("a", "class D {}"))));
2439
ctx.RegisterPostInitializationOutput(c => c.
AddSource
("a", "class D {}"));
3215
ctx.RegisterPostInitializationOutput((context) => context.
AddSource
("PostInit", ""));
3701
ctx.RegisterPostInitializationOutput(c => c.
AddSource
("D", postInitSource));
4590
var generator = new PipelineCallbackGenerator((ctx) => { ctx.RegisterPostInitializationOutput(postInitCtx => { postInitCtx.
AddSource
("staticSource.cs", "//static"); }); }).AsSourceGenerator();
4610
var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterPostInitializationOutput(postInitCtx => { postInitCtx.
AddSource
("staticSource.cs", "//static"); }); }).AsSourceGenerator();
4611
var generator2 = new PipelineCallbackGenerator2((ctx) => { ctx.RegisterPostInitializationOutput(postInitCtx => { postInitCtx.
AddSource
("staticSource2.cs", "//static 2"); }); }).AsSourceGenerator();
Microsoft.Maui.Controls.BindingSourceGen (1)
BindingSourceGenerator.cs (1)
39
spc.
AddSource
("GeneratedBindingInterceptorsCommon.g.cs", BindingCodeWriter.GenerateCommonCode());
System.Windows.Forms.PrivateSourceGenerators (1)
System\Windows\Forms\SourceGenerators\EnumValidationGenerator.cs (1)
37
context.
AddSource
("BaseValidator.cs", EnumValidatorStub);