C# Class XSharp.CodeDom.XSharpCodeGenerator

Afficher le fichier Open project: X-Sharp/XSharpPublic Class Usage Examples

Méthodes publiques

Méthode Description
XSharpCodeGenerator ( ) : System

Méthodes protégées

Méthode Description
CmdArgsFromParameters ( CompilerParameters options ) : string
ContinueOnNewLine ( string st ) : void
CreateEscapedIdentifier ( string value ) : string
CreateValidIdentifier ( string value ) : string
GenerateArgumentReferenceExpression ( CodeArgumentReferenceExpression e ) : void
GenerateArrayCreateExpression ( CodeArrayCreateExpression e ) : void
GenerateArrayIndexerExpression ( CodeArrayIndexerExpression e ) : void
GenerateAssignStatement ( CodeAssignStatement e ) : void
GenerateAttachEventStatement ( System.CodeDom.CodeAttachEventStatement e ) : void
GenerateAttributeDeclarationsEnd ( CodeAttributeDeclarationCollection attributes ) : void
GenerateAttributeDeclarationsStart ( CodeAttributeDeclarationCollection attributes ) : void
GenerateBaseReferenceExpression ( System.CodeDom.CodeBaseReferenceExpression e ) : void
GenerateCastExpression ( CodeCastExpression e ) : void
GenerateComment ( CodeComment e ) : void
GenerateCompileUnitEnd ( CodeCompileUnit e ) : void
GenerateCompileUnitStart ( CodeCompileUnit e ) : void
GenerateConditionStatement ( CodeConditionStatement e ) : void
GenerateConstructor ( CodeConstructor e, CodeTypeDeclaration c ) : void
GenerateDelegateCreateExpression ( CodeDelegateCreateExpression e ) : void
GenerateDelegateInvokeExpression ( CodeDelegateInvokeExpression e ) : void
GenerateEntryPointMethod ( CodeEntryPointMethod e, CodeTypeDeclaration c ) : void
GenerateEvent ( CodeMemberEvent e, CodeTypeDeclaration c ) : void
GenerateEventReferenceExpression ( CodeEventReferenceExpression e ) : void
GenerateExpressionStatement ( CodeExpressionStatement e ) : void
GenerateField ( CodeMemberField e ) : void
GenerateFieldReferenceExpression ( CodeFieldReferenceExpression e ) : void
GenerateGotoStatement ( CodeGotoStatement e ) : void
GenerateIndexerExpression ( CodeIndexerExpression e ) : void
GenerateIterationStatement ( CodeIterationStatement e ) : void
GenerateLabeledStatement ( CodeLabeledStatement e ) : void
GenerateLinePragmaEnd ( CodeLinePragma e ) : void
GenerateLinePragmaStart ( CodeLinePragma e ) : void
GenerateMethod ( CodeMemberMethod e, CodeTypeDeclaration c ) : void
GenerateMethodInvokeExpression ( CodeMethodInvokeExpression e ) : void
GenerateMethodReferenceExpression ( CodeMethodReferenceExpression e ) : void
GenerateMethodReturnStatement ( CodeMethodReturnStatement e ) : void
GenerateNamespace ( CodeNamespace e ) : void
GenerateNamespaceEnd ( CodeNamespace e ) : void
GenerateNamespaceImport ( CodeNamespaceImport e ) : void
GenerateNamespaceStart ( CodeNamespace e ) : void
GenerateObjectCreateExpression ( CodeObjectCreateExpression e ) : void
GenerateParameterDeclarationExpression ( CodeParameterDeclarationExpression e ) : void
GenerateProperty ( CodeMemberProperty e, CodeTypeDeclaration c ) : void
GeneratePropertyReferenceExpression ( CodePropertyReferenceExpression e ) : void
GeneratePropertySetValueReferenceExpression ( System.CodeDom.CodePropertySetValueReferenceExpression e ) : void
GenerateRemoveEventStatement ( CodeRemoveEventStatement e ) : void
GenerateSnippetExpression ( CodeSnippetExpression e ) : void
GenerateSnippetMember ( CodeSnippetTypeMember e ) : void
GenerateThisReferenceExpression ( System.CodeDom.CodeThisReferenceExpression e ) : void
GenerateThrowExceptionStatement ( CodeThrowExceptionStatement e ) : void
GenerateTryCatchFinallyStatement ( CodeTryCatchFinallyStatement e ) : void
GenerateTypeConstructor ( CodeTypeConstructor e ) : void
GenerateTypeEnd ( CodeTypeDeclaration e ) : void
GenerateTypeStart ( CodeTypeDeclaration e ) : void
GenerateVariableDeclarationStatement ( CodeVariableDeclarationStatement e ) : void
GenerateVariableReferenceExpression ( CodeVariableReferenceExpression e ) : void
GetTypeOutput ( CodeTypeReference typeRef ) : string
IsValidIdentifier ( string value ) : bool
OutputAttributeArgument ( CodeAttributeArgument arg ) : void
OutputMemberAccessModifier ( MemberAttributes attributes ) : void
OutputMemberScopeModifier ( MemberAttributes attributes ) : void
OutputOperator ( CodeBinaryOperatorType op ) : void
OutputType ( CodeTypeReference typeRef ) : void
ProcessCompilerOutputLine ( CompilerResults results, string line ) : void
QuoteSnippetString ( string value ) : string
Supports ( GeneratorSupport support ) : bool

Private Methods

Méthode Description
BuildGenericArguments ( CodeTypeReferenceCollection typeArguments, int start, int len ) : String
EmitGenericTypeArgs ( CodeTypeReferenceCollection typeArgs ) : void
GenerateAttributes ( CodeAttributeDeclarationCollection attributes ) : void
GenerateAttributes ( CodeAttributeDeclarationCollection attributes, string prefix ) : void
GenerateAttributes ( CodeAttributeDeclarationCollection attributes, string prefix, bool inLine ) : void
GetBaseTypeOutput ( CodeTypeReference typeRef ) : string
OutputGenericArguments ( CodeTypeReferenceCollection typeArguments ) : void
OutputGenericParameters ( CodeTypeParameterCollection typeParameters ) : void
OutputTypeAttributes ( CodeTypeDeclaration e ) : void

Method Details

CmdArgsFromParameters() protected méthode

protected CmdArgsFromParameters ( CompilerParameters options ) : string
options System.CodeDom.Compiler.CompilerParameters
Résultat string

ContinueOnNewLine() protected méthode

protected ContinueOnNewLine ( string st ) : void
st string
Résultat void

CreateEscapedIdentifier() protected méthode

protected CreateEscapedIdentifier ( string value ) : string
value string
Résultat string

CreateValidIdentifier() protected méthode

protected CreateValidIdentifier ( string value ) : string
value string
Résultat string

GenerateArgumentReferenceExpression() protected méthode

protected GenerateArgumentReferenceExpression ( CodeArgumentReferenceExpression e ) : void
e System.CodeDom.CodeArgumentReferenceExpression
Résultat void

GenerateArrayCreateExpression() protected méthode

protected GenerateArrayCreateExpression ( CodeArrayCreateExpression e ) : void
e System.CodeDom.CodeArrayCreateExpression
Résultat void

GenerateArrayIndexerExpression() protected méthode

protected GenerateArrayIndexerExpression ( CodeArrayIndexerExpression e ) : void
e System.CodeDom.CodeArrayIndexerExpression
Résultat void

GenerateAssignStatement() protected méthode

protected GenerateAssignStatement ( CodeAssignStatement e ) : void
e System.CodeDom.CodeAssignStatement
Résultat void

GenerateAttachEventStatement() protected méthode

protected GenerateAttachEventStatement ( System.CodeDom.CodeAttachEventStatement e ) : void
e System.CodeDom.CodeAttachEventStatement
Résultat void

GenerateAttributeDeclarationsEnd() protected méthode

protected GenerateAttributeDeclarationsEnd ( CodeAttributeDeclarationCollection attributes ) : void
attributes System.CodeDom.CodeAttributeDeclarationCollection
Résultat void

GenerateAttributeDeclarationsStart() protected méthode

protected GenerateAttributeDeclarationsStart ( CodeAttributeDeclarationCollection attributes ) : void
attributes System.CodeDom.CodeAttributeDeclarationCollection
Résultat void

GenerateBaseReferenceExpression() protected méthode

protected GenerateBaseReferenceExpression ( System.CodeDom.CodeBaseReferenceExpression e ) : void
e System.CodeDom.CodeBaseReferenceExpression
Résultat void

GenerateCastExpression() protected méthode

protected GenerateCastExpression ( CodeCastExpression e ) : void
e System.CodeDom.CodeCastExpression
Résultat void

GenerateComment() protected méthode

protected GenerateComment ( CodeComment e ) : void
e System.CodeDom.CodeComment
Résultat void

GenerateCompileUnitEnd() protected méthode

protected GenerateCompileUnitEnd ( CodeCompileUnit e ) : void
e System.CodeDom.CodeCompileUnit
Résultat void

GenerateCompileUnitStart() protected méthode

protected GenerateCompileUnitStart ( CodeCompileUnit e ) : void
e System.CodeDom.CodeCompileUnit
Résultat void

GenerateConditionStatement() protected méthode

protected GenerateConditionStatement ( CodeConditionStatement e ) : void
e System.CodeDom.CodeConditionStatement
Résultat void

GenerateConstructor() protected méthode

protected GenerateConstructor ( CodeConstructor e, CodeTypeDeclaration c ) : void
e System.CodeDom.CodeConstructor
c System.CodeDom.CodeTypeDeclaration
Résultat void

GenerateDelegateCreateExpression() protected méthode

protected GenerateDelegateCreateExpression ( CodeDelegateCreateExpression e ) : void
e System.CodeDom.CodeDelegateCreateExpression
Résultat void

GenerateDelegateInvokeExpression() protected méthode

protected GenerateDelegateInvokeExpression ( CodeDelegateInvokeExpression e ) : void
e System.CodeDom.CodeDelegateInvokeExpression
Résultat void

GenerateEntryPointMethod() protected méthode

protected GenerateEntryPointMethod ( CodeEntryPointMethod e, CodeTypeDeclaration c ) : void
e System.CodeDom.CodeEntryPointMethod
c System.CodeDom.CodeTypeDeclaration
Résultat void

GenerateEvent() protected méthode

protected GenerateEvent ( CodeMemberEvent e, CodeTypeDeclaration c ) : void
e System.CodeDom.CodeMemberEvent
c System.CodeDom.CodeTypeDeclaration
Résultat void

GenerateEventReferenceExpression() protected méthode

protected GenerateEventReferenceExpression ( CodeEventReferenceExpression e ) : void
e System.CodeDom.CodeEventReferenceExpression
Résultat void

GenerateExpressionStatement() protected méthode

protected GenerateExpressionStatement ( CodeExpressionStatement e ) : void
e System.CodeDom.CodeExpressionStatement
Résultat void

GenerateField() protected méthode

protected GenerateField ( CodeMemberField e ) : void
e System.CodeDom.CodeMemberField
Résultat void

GenerateFieldReferenceExpression() protected méthode

protected GenerateFieldReferenceExpression ( CodeFieldReferenceExpression e ) : void
e System.CodeDom.CodeFieldReferenceExpression
Résultat void

GenerateGotoStatement() protected méthode

protected GenerateGotoStatement ( CodeGotoStatement e ) : void
e System.CodeDom.CodeGotoStatement
Résultat void

GenerateIndexerExpression() protected méthode

protected GenerateIndexerExpression ( CodeIndexerExpression e ) : void
e System.CodeDom.CodeIndexerExpression
Résultat void

GenerateIterationStatement() protected méthode

protected GenerateIterationStatement ( CodeIterationStatement e ) : void
e System.CodeDom.CodeIterationStatement
Résultat void

GenerateLabeledStatement() protected méthode

protected GenerateLabeledStatement ( CodeLabeledStatement e ) : void
e System.CodeDom.CodeLabeledStatement
Résultat void

GenerateLinePragmaEnd() protected méthode

protected GenerateLinePragmaEnd ( CodeLinePragma e ) : void
e System.CodeDom.CodeLinePragma
Résultat void

GenerateLinePragmaStart() protected méthode

protected GenerateLinePragmaStart ( CodeLinePragma e ) : void
e System.CodeDom.CodeLinePragma
Résultat void

GenerateMethod() protected méthode

protected GenerateMethod ( CodeMemberMethod e, CodeTypeDeclaration c ) : void
e System.CodeDom.CodeMemberMethod
c System.CodeDom.CodeTypeDeclaration
Résultat void

GenerateMethodInvokeExpression() protected méthode

protected GenerateMethodInvokeExpression ( CodeMethodInvokeExpression e ) : void
e System.CodeDom.CodeMethodInvokeExpression
Résultat void

GenerateMethodReferenceExpression() protected méthode

protected GenerateMethodReferenceExpression ( CodeMethodReferenceExpression e ) : void
e System.CodeDom.CodeMethodReferenceExpression
Résultat void

GenerateMethodReturnStatement() protected méthode

protected GenerateMethodReturnStatement ( CodeMethodReturnStatement e ) : void
e System.CodeDom.CodeMethodReturnStatement
Résultat void

GenerateNamespace() protected méthode

protected GenerateNamespace ( CodeNamespace e ) : void
e System.CodeDom.CodeNamespace
Résultat void

GenerateNamespaceEnd() protected méthode

protected GenerateNamespaceEnd ( CodeNamespace e ) : void
e System.CodeDom.CodeNamespace
Résultat void

GenerateNamespaceImport() protected méthode

protected GenerateNamespaceImport ( CodeNamespaceImport e ) : void
e System.CodeDom.CodeNamespaceImport
Résultat void

GenerateNamespaceStart() protected méthode

protected GenerateNamespaceStart ( CodeNamespace e ) : void
e System.CodeDom.CodeNamespace
Résultat void

GenerateObjectCreateExpression() protected méthode

protected GenerateObjectCreateExpression ( CodeObjectCreateExpression e ) : void
e System.CodeDom.CodeObjectCreateExpression
Résultat void

GenerateParameterDeclarationExpression() protected méthode

protected GenerateParameterDeclarationExpression ( CodeParameterDeclarationExpression e ) : void
e System.CodeDom.CodeParameterDeclarationExpression
Résultat void

GenerateProperty() protected méthode

protected GenerateProperty ( CodeMemberProperty e, CodeTypeDeclaration c ) : void
e System.CodeDom.CodeMemberProperty
c System.CodeDom.CodeTypeDeclaration
Résultat void

GeneratePropertyReferenceExpression() protected méthode

protected GeneratePropertyReferenceExpression ( CodePropertyReferenceExpression e ) : void
e System.CodeDom.CodePropertyReferenceExpression
Résultat void

GeneratePropertySetValueReferenceExpression() protected méthode

protected GeneratePropertySetValueReferenceExpression ( System.CodeDom.CodePropertySetValueReferenceExpression e ) : void
e System.CodeDom.CodePropertySetValueReferenceExpression
Résultat void

GenerateRemoveEventStatement() protected méthode

protected GenerateRemoveEventStatement ( CodeRemoveEventStatement e ) : void
e System.CodeDom.CodeRemoveEventStatement
Résultat void

GenerateSnippetExpression() protected méthode

protected GenerateSnippetExpression ( CodeSnippetExpression e ) : void
e System.CodeDom.CodeSnippetExpression
Résultat void

GenerateSnippetMember() protected méthode

protected GenerateSnippetMember ( CodeSnippetTypeMember e ) : void
e System.CodeDom.CodeSnippetTypeMember
Résultat void

GenerateThisReferenceExpression() protected méthode

protected GenerateThisReferenceExpression ( System.CodeDom.CodeThisReferenceExpression e ) : void
e System.CodeDom.CodeThisReferenceExpression
Résultat void

GenerateThrowExceptionStatement() protected méthode

protected GenerateThrowExceptionStatement ( CodeThrowExceptionStatement e ) : void
e System.CodeDom.CodeThrowExceptionStatement
Résultat void

GenerateTryCatchFinallyStatement() protected méthode

protected GenerateTryCatchFinallyStatement ( CodeTryCatchFinallyStatement e ) : void
e System.CodeDom.CodeTryCatchFinallyStatement
Résultat void

GenerateTypeConstructor() protected méthode

protected GenerateTypeConstructor ( CodeTypeConstructor e ) : void
e System.CodeDom.CodeTypeConstructor
Résultat void

GenerateTypeEnd() protected méthode

protected GenerateTypeEnd ( CodeTypeDeclaration e ) : void
e System.CodeDom.CodeTypeDeclaration
Résultat void

GenerateTypeStart() protected méthode

protected GenerateTypeStart ( CodeTypeDeclaration e ) : void
e System.CodeDom.CodeTypeDeclaration
Résultat void

GenerateVariableDeclarationStatement() protected méthode

protected GenerateVariableDeclarationStatement ( CodeVariableDeclarationStatement e ) : void
e System.CodeDom.CodeVariableDeclarationStatement
Résultat void

GenerateVariableReferenceExpression() protected méthode

protected GenerateVariableReferenceExpression ( CodeVariableReferenceExpression e ) : void
e System.CodeDom.CodeVariableReferenceExpression
Résultat void

GetTypeOutput() protected méthode

protected GetTypeOutput ( CodeTypeReference typeRef ) : string
typeRef System.CodeDom.CodeTypeReference
Résultat string

IsValidIdentifier() protected méthode

protected IsValidIdentifier ( string value ) : bool
value string
Résultat bool

OutputAttributeArgument() protected méthode

protected OutputAttributeArgument ( CodeAttributeArgument arg ) : void
arg System.CodeDom.CodeAttributeArgument
Résultat void

OutputMemberAccessModifier() protected méthode

protected OutputMemberAccessModifier ( MemberAttributes attributes ) : void
attributes MemberAttributes
Résultat void

OutputMemberScopeModifier() protected méthode

protected OutputMemberScopeModifier ( MemberAttributes attributes ) : void
attributes MemberAttributes
Résultat void

OutputOperator() protected méthode

protected OutputOperator ( CodeBinaryOperatorType op ) : void
op CodeBinaryOperatorType
Résultat void

OutputType() protected méthode

protected OutputType ( CodeTypeReference typeRef ) : void
typeRef System.CodeDom.CodeTypeReference
Résultat void

ProcessCompilerOutputLine() protected méthode

protected ProcessCompilerOutputLine ( CompilerResults results, string line ) : void
results System.CodeDom.Compiler.CompilerResults
line string
Résultat void

QuoteSnippetString() protected méthode

protected QuoteSnippetString ( string value ) : string
value string
Résultat string

Supports() protected méthode

protected Supports ( GeneratorSupport support ) : bool
support GeneratorSupport
Résultat bool

XSharpCodeGenerator() public méthode

public XSharpCodeGenerator ( ) : System
Résultat System