16 references to AddSource
Microsoft.AspNetCore.App.SourceGenerators (1)
PublicTopLevelProgramGenerator.cs (1)
45context.AddSource("PublicTopLevelProgram.Generated.g.cs", PublicPartialProgramClassSource);
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
XmlCommentGenerator.Emitter.cs (1)
802context.AddSource("OpenApiXmlCommentSupport.generated.cs", GenerateXmlCommentSupportSource(commentsFromXmlFile, commentsFromCompilation, groupedAddOpenApiInvocations));
Microsoft.Gen.ContextualOptions (1)
ContextualOptionsGenerator.cs (1)
61context.AddSource($"ContextualOptions.g.cs", emitter.Emit(list.OrderBy(x => x.Namespace + "." + x.Name)));
Microsoft.Interop.ComInterfaceGenerator (6)
ComClassGenerator.cs (1)
98context.AddSource(hintName, sw.ToString());
ComInterfaceGenerator.cs (1)
161context.AddSource(interfaceContext.Info.Type.FullTypeName.Replace(TypeNames.GlobalAlias, ""), sw.ToString());
VtableIndexStubGenerator.cs (4)
80context.AddSource("ManagedToNativeStubs.g.cs", sw.ToString()); 116context.AddSource("NativeToManagedStubs.g.cs", sw.ToString()); 145context.AddSource("NativeInterfaces.g.cs", sw.ToString()); 186context.AddSource("PopulateVTable.g.cs", sw.ToString());
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSExportGenerator.cs (1)
110context.AddSource("JSExports.g.cs", source.ToString());
Microsoft.Interop.SourceGeneration (1)
IncrementalGeneratorInitializationContextExtensions.cs (1)
76context.AddSource(fileName, source.ToString());
Microsoft.Maui.Controls.BindingSourceGen (1)
BindingSourceGenerator.cs (1)
48 spc.AddSource(sanitizedFileName, code);
System.Private.CoreLib.Generators (1)
ProductVersionInfoGenerator.cs (1)
35ctx.AddSource("ProductVersionInfo.g.cs", $@"// <auto-generated/>
System.Text.RegularExpressions.Generator (1)
RegexGenerator.cs (1)
314context.AddSource("RegexGenerator.g.cs", sw.ToString());
System.Windows.Forms.Analyzers.CSharp (1)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ApplicationConfigurationGenerator.cs (1)
54context.AddSource("ApplicationConfiguration.g.cs", code);
System.Windows.Forms.PrivateSourceGenerators (1)
System\Windows\Forms\SourceGenerators\EnumValidationGenerator.cs (1)
91context.AddSource("Validation.cs", sb.ToString());