4 references to AddEmbeddedAttributeDefinition
Microsoft.CodeAnalysis (1)
SourceGeneration\IncrementalContexts.cs (1)
135
/// Use <see cref="IncrementalGeneratorPostInitializationContext.
AddEmbeddedAttributeDefinition
"/> to add the EmbeddedAttribute which marks generated types as internal to the current assembly.
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
SourceGeneration\GeneratorDriverTests.cs (3)
2509
var callback = (IncrementalGeneratorInitializationContext ctx) => ctx.RegisterPostInitializationOutput(c => c.
AddEmbeddedAttributeDefinition
());
2556
c.
AddEmbeddedAttributeDefinition
();
2557
Assert.Throws<ArgumentException>("hintName", () => c.
AddEmbeddedAttributeDefinition
());