docs.unity.cn
    Show / Hide Table of Contents

    Class TypeCreationHelpers

    Inheritance
    Object
    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.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use