Class BoltGenerationUtility
Inheritance
BoltGenerationUtility
Syntax
public static class BoltGenerationUtility
Methods
AddNamespaces(HybridType, DocumentGeneration)
Declaration
public static void AddNamespaces(this HybridType type, DocumentGeneration document)
Parameters
Declaration
public static CodeExpression GenerateApiInputConvertedExpression(this CodeExpression expression, HybridType type, IGeneration generation)
Parameters
Returns
GenerateApiOutputConvertedExpression(CodeExpression, HybridType, IGeneration)
Declaration
public static CodeExpression GenerateApiOutputConvertedExpression(this CodeExpression expression, HybridType type, IGeneration generation)
Parameters
Returns
GenerateConvertedExpression(CodeExpression, HybridType, HybridType, IGeneration)
Declaration
public static CodeExpression GenerateConvertedExpression(this CodeExpression expression, HybridType sourceType, HybridType destinationType, IGeneration generation)
Parameters
Returns
GenerateLiteral(Object, IGeneration)
Declaration
public static CodeExpression GenerateLiteral(this object o, IGeneration generation)
Parameters
Returns
Generation(BoltClass, IGeneration)
Declaration
public static ClassGeneration Generation(this BoltClass cd, IGeneration generation)
Parameters
Returns
Generation(BoltEnum, IGeneration)
Declaration
public static EnumGeneration Generation(this BoltEnum cd, IGeneration generation)
Parameters
Returns
Generation(BoltType, IGeneration)
Declaration
public static ITypeGeneration Generation(this BoltType td, IGeneration generation)
Parameters
Returns
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
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
Returns
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
Returns
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
Returns
Type Parameters
Ref(BoltType, IGeneration)
Declaration
public static CodeTypeReference Ref(this BoltType t, IGeneration generation)
Parameters
Returns
Ref(HybridType, IGeneration)
Declaration
public static CodeTypeReference Ref(this HybridType t, IGeneration generation)
Parameters
Returns
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
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