Class TypeCreationHelpers
Namespace: Unity.Entities.SourceGen.Common
Syntax
public static class TypeCreationHelpers
Properties
Name | Description |
---|---|
GeneratedLineTriviaToGeneratedSource | Line to replace with on generated source. |
Methods
Name | Description |
---|---|
GenerateSourceTextForRootNodes(String, GeneratorExecutionContext, SyntaxTree, IEnumerable<MemberDeclarationSyntax>) | Generates the SourceText from a given list of root nodes using the SyntaxTree's path. Includes the existing SyntaxTree's root using statements, and adds correct line directives. |
GetReplacedRootNodes(SyntaxTree, IDictionary<TypeDeclarationSyntax, TypeDeclarationSyntax>) | Get root nodes of a replaced SyntaxTree. Where all the original nodes in dictionary is replaced with new nodes. |