Class RPCSourceGenerator
- Namespace
- AO
- Assembly
- SourceGenerator.dll
[Generator]
public class RPCSourceGenerator : ISourceGenerator
- Inheritance
-
RPCSourceGenerator
- Implements
- Inherited Members
- Extension Methods
Methods
Execute(GeneratorExecutionContext)
Called to perform source generation. A generator can use the context
to add source files via the AddSource(string, SourceText)
method.
public void Execute(GeneratorExecutionContext context)
Parameters
context
GeneratorExecutionContextThe GeneratorExecutionContext to add source to
Remarks
This call represents the main generation step. It is called after a Compilation is created that contains the user written code.
A generator can use the Compilation property to discover information about the users compilation and make decisions on what source to provide.
Inherits(INamedTypeSymbol, string)
public bool Inherits(INamedTypeSymbol symbol, string parent)
Parameters
symbol
INamedTypeSymbolparent
string
Returns
Initialize(GeneratorInitializationContext)
Called before generation occurs. A generator can use the context
to register callbacks required to perform generation.
public void Initialize(GeneratorInitializationContext context)
Parameters
context
GeneratorInitializationContextThe GeneratorInitializationContext to register callbacks on