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