Table of Contents

Class TypeScriptCodeGenerator

Namespace
Alternet.FormDesigner.TypeScript
Assembly
Alternet.FormDesigner.TypeScript.v9.dll
public class TypeScriptCodeGenerator : CodeCompiler, ICodeGenerator, ICodeCompiler
Inheritance
TypeScriptCodeGenerator
Implements
Derived

Constructors

TypeScriptCodeGenerator(IServiceProvider)

Properties

CompilerName

Gets the name of the compiler executable.

FileExtension

Gets the file name extension to use for source files.

NullToken

Gets the token that represents null.

Methods

CmdArgsFromParameters(CompilerParameters)

Gets the command arguments to be passed to the compiler from the specified CompilerParameters.

CreateEscapedIdentifier(string)

Creates an escaped identifier for the specified value.

CreateValidIdentifier(string)

Creates a valid identifier for the specified value.

GeneragteMissingAbstractMethod(CodeDelegateCreateExpression)
GenerateArgumentReferenceExpression(CodeArgumentReferenceExpression)

Generates code for the specified argument reference expression.

GenerateArrayCreateExpression(CodeArrayCreateExpression)

Generates code for the specified array creation expression.

GenerateArrayIndexerExpression(CodeArrayIndexerExpression)

Generates code for the specified array indexer expression.

GenerateAssemblyAttributes(CodeAttributeDeclarationCollection)
GenerateAssignStatement(CodeAssignStatement)

Generates code for the specified assignment statement.

GenerateAttachEventStatement(CodeAttachEventStatement)

Generates code for the specified attach event statement.

GenerateAttributeDeclarationsEnd(CodeAttributeDeclarationCollection)

Generates code for the specified attribute block end.

GenerateAttributeDeclarationsStart(CodeAttributeDeclarationCollection)

Generates code for the specified attribute block start.

GenerateBaseReferenceExpression(CodeBaseReferenceExpression)

Generates code for the specified base reference expression.

GenerateCastExpression(CodeCastExpression)

Generates code for the specified cast expression.

GenerateComment(CodeComment)

Generates code for the specified comment.

GenerateCompileUnitStart(CodeCompileUnit)

Generates code for the start of a compile unit.

GenerateConditionStatement(CodeConditionStatement)

Generates code for the specified conditional statement.

GenerateConstructor(CodeConstructor, CodeTypeDeclaration)

Generates code for the specified constructor.

GenerateDelegateCreateExpression(CodeDelegateCreateExpression)

Generates code for the specified delegate creation expression.

GenerateDelegateInvokeExpression(CodeDelegateInvokeExpression)

Generates code for the specified delegate invoke expression.

GenerateEntryPointMethod(CodeEntryPointMethod, CodeTypeDeclaration)

Generates code for the specified entry point method.

GenerateEvent(CodeMemberEvent, CodeTypeDeclaration)

Generates code for the specified event.

GenerateEventReferenceExpression(CodeEventReferenceExpression)

Generates code for the specified event reference expression.

GenerateExpressionStatement(CodeExpressionStatement)

Generates code for the specified expression statement.

GenerateField(CodeMemberField)

Generates code for the specified member field.

GenerateFieldReferenceExpression(CodeFieldReferenceExpression)

Generates code for the specified field reference expression.

GenerateGotoStatement(CodeGotoStatement)

Generates code for the specified goto statement.

GenerateIndexerExpression(CodeIndexerExpression)

Generates code for the specified indexer expression.

GenerateIterationStatement(CodeIterationStatement)

Generates code for the specified iteration statement.

GenerateLabeledStatement(CodeLabeledStatement)

Generates code for the specified labeled statement.

GenerateLinePragmaEnd(CodeLinePragma)

Generates code for the specified line pragma end.

GenerateLinePragmaStart(CodeLinePragma)

Generates code for the specified line pragma start.

GenerateMethod(CodeMemberMethod, CodeTypeDeclaration)

Generates code for the specified method.

GenerateMethodInvokeExpression(CodeMethodInvokeExpression)

Generates code for the specified method invoke expression.

GenerateMethodReferenceExpression(CodeMethodReferenceExpression)

Generates code for the specified method reference expression.

GenerateMethodReturnStatement(CodeMethodReturnStatement)

Generates code for the specified method return statement.

GenerateMissingAbstractDeclarations(CodeTypeDeclaration)
GenerateNamespace(CodeNamespace)

Generates code for the specified namespace.

GenerateNamespaceEnd(CodeNamespace)

Generates code for the end of a namespace.

GenerateNamespaceImport(CodeNamespaceImport)

Generates code for the specified namespace import.

GenerateNamespaceStart(CodeNamespace)

Generates code for the start of a namespace.

GenerateObjectCreateExpression(CodeObjectCreateExpression)

Generates code for the specified object creation expression.

GenerateParameterDeclarationExpression(CodeParameterDeclarationExpression)

Generates code for the specified parameter declaration expression.

GeneratePrimitiveExpression(CodePrimitiveExpression)

Generates code for the specified primitive expression.

GenerateProperty(CodeMemberProperty, CodeTypeDeclaration)

Generates code for the specified property.

GeneratePropertyReferenceExpression(CodePropertyReferenceExpression)

Generates code for the specified property reference expression.

GeneratePropertySetValueReferenceExpression(CodePropertySetValueReferenceExpression)

Generates code for the specified property set value reference expression.

GenerateRemoveEventStatement(CodeRemoveEventStatement)

Generates code for the specified remove event statement.

GenerateSingleFloatValue(float)

Generates code for a single-precision floating point number.

GenerateSnippetExpression(CodeSnippetExpression)

Outputs the code of the specified literal code fragment expression.

GenerateSnippetMember(CodeSnippetTypeMember)

Outputs the code of the specified literal code fragment class member.

GenerateSnippetStatement(CodeSnippetStatement)

Outputs the code of the specified literal code fragment statement.

GenerateThisReferenceExpression(CodeThisReferenceExpression)

Generates code for the specified this reference expression.

GenerateThrowExceptionStatement(CodeThrowExceptionStatement)

Generates code for the specified throw exception statement.

GenerateTryCatchFinallyStatement(CodeTryCatchFinallyStatement)

Generates code for the specified try...catch...finally statement.

GenerateTypeConstructor(CodeTypeConstructor)

Generates code for the specified class constructor.

GenerateTypeEnd(CodeTypeDeclaration)

Generates code for the specified end of the class.

GenerateTypeOfExpression(CodeTypeOfExpression)

Generates code for the specified type of expression.

GenerateTypeStart(CodeTypeDeclaration)

Generates code for the specified start of the class.

GenerateVariableDeclarationStatement(CodeVariableDeclarationStatement)

Generates code for the specified variable declaration statement.

GenerateVariableReferenceExpression(CodeVariableReferenceExpression)

Generates code for the specified variable reference expression.

GetParameterStr(ParameterInfo)
GetType(string)
GetTypeOutput(CodeTypeReference)

Gets the name of the specified data type.

IsValidIdentifier(string)

Gets a value indicating whether the specified value is a valid identifier.

OutputAttributeDeclarations(CodeAttributeDeclarationCollection)

Generates code for the specified attribute declaration collection.

OutputDirection(FieldDirection)

Generates code for the specified FieldDirection.

OutputIdentifier(string)

Outputs the specified identifier.

OutputMemberAccessModifier(MemberAttributes)

Generates code for the specified member access modifier.

OutputMemberScopeModifier(MemberAttributes)

Generates code for the specified member scope modifier.

OutputParameters(CodeParameterDeclarationExpressionCollection)

Generates code for the specified parameters.

OutputStartingBrace()
OutputType(CodeTypeReference)

Generates code for the specified type.

OutputTypeAttributes(TypeAttributes, bool, bool)

Generates code for the specified type attributes.

OutputTypeNamePair(CodeTypeReference, string)

Generates code for the specified object type and name pair.

ProcessCompilerOutputLine(CompilerResults, string)

Processes the specified line from the specified CompilerResults.

QuoteSnippetString(string)

Converts the specified string by formatting it with escape codes.

Supports(GeneratorSupport)

Gets a value indicating whether the specified code generation support is provided.

TryGenerateHostCastToPrimitiveTypeExpression(CodeCastExpression)