docs.unity3d.com
    Show / Hide Table of Contents

    Class BoltGenerationUtility

    Inheritance
    Object
    BoltGenerationUtility
    Namespace: Ludiq.Bolt
    Syntax
    public static class BoltGenerationUtility

    Methods

    AddNamespaces(HybridType, DocumentGeneration)

    Declaration
    public static void AddNamespaces(this HybridType type, DocumentGeneration document)
    Parameters
    Type Name Description
    HybridType type
    DocumentGeneration document

    GenerateApiInputConvertedExpression(CodeExpression, HybridType, IGeneration)

    Declaration
    public static CodeExpression GenerateApiInputConvertedExpression(this CodeExpression expression, HybridType type, IGeneration generation)
    Parameters
    Type Name Description
    CodeExpression expression
    HybridType type
    IGeneration generation
    Returns
    Type Description
    CodeExpression

    GenerateApiOutputConvertedExpression(CodeExpression, HybridType, IGeneration)

    Declaration
    public static CodeExpression GenerateApiOutputConvertedExpression(this CodeExpression expression, HybridType type, IGeneration generation)
    Parameters
    Type Name Description
    CodeExpression expression
    HybridType type
    IGeneration generation
    Returns
    Type Description
    CodeExpression

    GenerateConvertedExpression(CodeExpression, HybridType, HybridType, IGeneration)

    Declaration
    public static CodeExpression GenerateConvertedExpression(this CodeExpression expression, HybridType sourceType, HybridType destinationType, IGeneration generation)
    Parameters
    Type Name Description
    CodeExpression expression
    HybridType sourceType
    HybridType destinationType
    IGeneration generation
    Returns
    Type Description
    CodeExpression

    GenerateLiteral(Object, IGeneration)

    Declaration
    public static CodeExpression GenerateLiteral(this object o, IGeneration generation)
    Parameters
    Type Name Description
    Object o
    IGeneration generation
    Returns
    Type Description
    CodeExpression

    Generation(BoltClass, IGeneration)

    Declaration
    public static ClassGeneration Generation(this BoltClass cd, IGeneration generation)
    Parameters
    Type Name Description
    BoltClass cd
    IGeneration generation
    Returns
    Type Description
    ClassGeneration

    Generation(BoltEnum, IGeneration)

    Declaration
    public static EnumGeneration Generation(this BoltEnum cd, IGeneration generation)
    Parameters
    Type Name Description
    BoltEnum cd
    IGeneration generation
    Returns
    Type Description
    EnumGeneration

    Generation(BoltType, IGeneration)

    Declaration
    public static ITypeGeneration Generation(this BoltType td, IGeneration generation)
    Parameters
    Type Name Description
    BoltType td
    IGeneration generation
    Returns
    Type Description
    ITypeGeneration

    HandleException(Exception, String, IGeneration, BoltType, GraphPointer, IGraphChild)

    Declaration
    public static void HandleException(Exception ex, string message, IGeneration generation, BoltType type = null, GraphPointer graphPointer = null, IGraphChild graphChild = null)
    Parameters
    Type Name Description
    Exception ex
    String message
    IGeneration generation
    BoltType type
    GraphPointer graphPointer
    IGraphChild graphChild

    HiddenInPreview<TElement>(TElement, IGeneration)

    Declaration
    public static TElement HiddenInPreview<TElement>(this TElement element, IGeneration generation)
        where TElement : CodeElement
    Parameters
    Type Name Description
    TElement element
    IGeneration generation
    Returns
    Type Description
    TElement
    Type Parameters
    Name Description
    TElement

    Recoverable(Func<CodeExpression>, IGeneration, String, BoltType, GraphPointer, IGraphChild)

    Declaration
    public static CodeExpression Recoverable(this Func<CodeExpression> generator, IGeneration generation, string invalidText, BoltType type = null, GraphPointer graphPointer = null, IGraphChild graphChild = null)
    Parameters
    Type Name Description
    Func<CodeExpression> generator
    IGeneration generation
    String invalidText
    BoltType type
    GraphPointer graphPointer
    IGraphChild graphChild
    Returns
    Type Description
    CodeExpression

    Recoverable(Func<CodeStatement>, IGeneration, String, BoltType, GraphPointer, IGraphChild)

    Declaration
    public static CodeStatement Recoverable(this Func<CodeStatement> generator, IGeneration generation, string invalidText, BoltType type = null, GraphPointer graphPointer = null, IGraphChild graphChild = null)
    Parameters
    Type Name Description
    Func<CodeStatement> generator
    IGeneration generation
    String invalidText
    BoltType type
    GraphPointer graphPointer
    IGraphChild graphChild
    Returns
    Type Description
    CodeStatement

    Recoverable<T>(Func<IEnumerable<CodeStatement>>, String, IGeneration, BoltType, GraphPointer, IGraphChild)

    Declaration
    public static IEnumerable<CodeStatement> Recoverable<T>(this Func<IEnumerable<CodeStatement>> generator, string invalidText, IGeneration generation, BoltType type = null, GraphPointer graphPointer = null, IGraphChild graphChild = null)
    Parameters
    Type Name Description
    Func<IEnumerable<CodeStatement>> generator
    String invalidText
    IGeneration generation
    BoltType type
    GraphPointer graphPointer
    IGraphChild graphChild
    Returns
    Type Description
    IEnumerable<CodeStatement>
    Type Parameters
    Name Description
    T

    Ref(BoltType, IGeneration)

    Declaration
    public static CodeTypeReference Ref(this BoltType t, IGeneration generation)
    Parameters
    Type Name Description
    BoltType t
    IGeneration generation
    Returns
    Type Description
    CodeTypeReference

    Ref(HybridType, IGeneration)

    Declaration
    public static CodeTypeReference Ref(this HybridType t, IGeneration generation)
    Parameters
    Type Name Description
    HybridType t
    IGeneration generation
    Returns
    Type Description
    CodeTypeReference

    ThrowException(CodeGenerationException, IGeneration, BoltType, GraphPointer, IGraphChild)

    Declaration
    public static void ThrowException(this CodeGenerationException cgex, IGeneration generation, BoltType type = null, GraphPointer graphPointer = null, IGraphChild graphChild = null)
    Parameters
    Type Name Description
    CodeGenerationException cgex
    IGeneration generation
    BoltType type
    GraphPointer graphPointer
    IGraphChild graphChild

    ThrowException(String, IGeneration, BoltType, GraphPointer, IGraphChild)

    Declaration
    public static void ThrowException(string message, IGeneration generation, BoltType type = null, GraphPointer graphPointer = null, IGraphChild graphChild = null)
    Parameters
    Type Name Description
    String message
    IGeneration generation
    BoltType type
    GraphPointer graphPointer
    IGraphChild graphChild
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023