11 references to AddSource
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
SourceGeneration\GeneratorDriverTests.cs (8)
889
context.
AddSource
("postInit", "public class D {} ");
915
context.
AddSource
("postInit", "public class D {} ");
942
context.
AddSource
("postInit", "public class D {} ");
972
context.
AddSource
("postInit", "public class D {} ");
1002
context.
AddSource
("postInit", "public class D {} ");
1037
context.
AddSource
("postInit", "public class D {} ");
1063
var generator = new CallbackGenerator((ic) => ic.RegisterForPostInitialization(pic => pic.
AddSource
("postInit", "public class D{}")), (sgc) => { }, "public class E{}");
1090
var generator = new CallbackGenerator((ic) => ic.RegisterForPostInitialization(pic => pic.
AddSource
("postInit", "public class D{}")), (sgc) => { }, "public class E{}");
SourceGeneration\SyntaxAwareGeneratorTests.cs (3)
683
i.RegisterForPostInitialization((pic) => pic.
AddSource
("postInit", source2));
742
onInit: (i) => i.RegisterForPostInitialization((pic) => pic.
AddSource
("postInit", source2)),
799
i.RegisterForPostInitialization((pic) => pic.
AddSource
("postInit", postInitSource));