C# Class MiniSharp.LoweringContext

Inheritance: IAstVisitor
Exibir arquivo Open project: evanw/minisharp Class Usage Examples

Public Methods

Method Description
Lower ( InputContext context ) : bool
VisitAccessor ( Accessor node ) : void
VisitAnonymousMethodExpression ( AnonymousMethodExpression node ) : void
VisitAnonymousTypeCreateExpression ( AnonymousTypeCreateExpression node ) : void
VisitArrayCreateExpression ( ArrayCreateExpression node ) : void
VisitArrayInitializerExpression ( ArrayInitializerExpression node ) : void
VisitArraySpecifier ( ArraySpecifier node ) : void
VisitAsExpression ( AsExpression node ) : void
VisitAssignmentExpression ( AssignmentExpression node ) : void
VisitAttribute ( ICSharpCode node ) : void
VisitAttributeSection ( AttributeSection node ) : void
VisitBaseReferenceExpression ( BaseReferenceExpression node ) : void
VisitBinaryOperatorExpression ( BinaryOperatorExpression node ) : void
VisitBlockStatement ( BlockStatement node ) : void
VisitBreakStatement ( BreakStatement node ) : void
VisitCSharpTokenNode ( CSharpTokenNode node ) : void
VisitCaseLabel ( CaseLabel node ) : void
VisitCastExpression ( CastExpression node ) : void
VisitCatchClause ( CatchClause node ) : void
VisitCheckedExpression ( CheckedExpression node ) : void
VisitCheckedStatement ( CheckedStatement node ) : void
VisitComment ( Comment node ) : void
VisitComposedType ( ComposedType node ) : void
VisitConditionalExpression ( ConditionalExpression node ) : void
VisitConstraint ( Constraint node ) : void
VisitConstructorDeclaration ( ConstructorDeclaration node ) : void
VisitConstructorInitializer ( ConstructorInitializer node ) : void
VisitContinueStatement ( ContinueStatement node ) : void
VisitCustomEventDeclaration ( CustomEventDeclaration node ) : void
VisitDefaultValueExpression ( DefaultValueExpression node ) : void
VisitDelegateDeclaration ( DelegateDeclaration node ) : void
VisitDestructorDeclaration ( DestructorDeclaration node ) : void
VisitDirectionExpression ( DirectionExpression node ) : void
VisitDoWhileStatement ( DoWhileStatement node ) : void
VisitDocumentationReference ( DocumentationReference node ) : void
VisitEmptyStatement ( EmptyStatement node ) : void
VisitEnumMemberDeclaration ( EnumMemberDeclaration node ) : void
VisitErrorNode ( AstNode node ) : void
VisitEventDeclaration ( EventDeclaration node ) : void
VisitExpressionStatement ( ExpressionStatement node ) : void
VisitExternAliasDeclaration ( ExternAliasDeclaration node ) : void
VisitFieldDeclaration ( FieldDeclaration node ) : void
VisitFixedFieldDeclaration ( FixedFieldDeclaration node ) : void
VisitFixedStatement ( FixedStatement node ) : void
VisitFixedVariableInitializer ( FixedVariableInitializer node ) : void
VisitForStatement ( ForStatement node ) : void
VisitForeachStatement ( ForeachStatement node ) : void
VisitGotoCaseStatement ( GotoCaseStatement node ) : void
VisitGotoDefaultStatement ( GotoDefaultStatement node ) : void
VisitGotoStatement ( GotoStatement node ) : void
VisitIdentifier ( Identifier node ) : void
VisitIdentifierExpression ( IdentifierExpression node ) : void
VisitIfElseStatement ( IfElseStatement node ) : void
VisitIndexerDeclaration ( IndexerDeclaration node ) : void
VisitIndexerExpression ( IndexerExpression node ) : void
VisitInvocationExpression ( InvocationExpression node ) : void
VisitIsExpression ( IsExpression node ) : void
VisitLabelStatement ( LabelStatement node ) : void
VisitLambdaExpression ( LambdaExpression node ) : void
VisitLockStatement ( LockStatement node ) : void
VisitMemberReferenceExpression ( MemberReferenceExpression node ) : void
VisitMemberType ( MemberType node ) : void
VisitMethodDeclaration ( MethodDeclaration node ) : void
VisitNamedArgumentExpression ( NamedArgumentExpression node ) : void
VisitNamedExpression ( NamedExpression node ) : void
VisitNamespaceDeclaration ( NamespaceDeclaration node ) : void
VisitNewLine ( NewLineNode node ) : void
VisitNullNode ( AstNode node ) : void
VisitNullReferenceExpression ( NullReferenceExpression node ) : void
VisitObjectCreateExpression ( ObjectCreateExpression node ) : void
VisitOperatorDeclaration ( OperatorDeclaration node ) : void
VisitParameterDeclaration ( ParameterDeclaration node ) : void
VisitParenthesizedExpression ( ParenthesizedExpression node ) : void
VisitPatternPlaceholder ( AstNode node, ICSharpCode.NRefactory.PatternMatching.Pattern pattern ) : void
VisitPointerReferenceExpression ( PointerReferenceExpression node ) : void
VisitPreProcessorDirective ( PreProcessorDirective node ) : void
VisitPrimitiveExpression ( PrimitiveExpression node ) : void
VisitPrimitiveType ( PrimitiveType node ) : void
VisitPropertyDeclaration ( PropertyDeclaration node ) : void
VisitQueryContinuationClause ( QueryContinuationClause node ) : void
VisitQueryExpression ( QueryExpression node ) : void
VisitQueryFromClause ( QueryFromClause node ) : void
VisitQueryGroupClause ( QueryGroupClause node ) : void
VisitQueryJoinClause ( QueryJoinClause node ) : void
VisitQueryLetClause ( QueryLetClause node ) : void
VisitQueryOrderClause ( QueryOrderClause node ) : void
VisitQueryOrdering ( QueryOrdering node ) : void
VisitQuerySelectClause ( QuerySelectClause node ) : void
VisitQueryWhereClause ( QueryWhereClause node ) : void
VisitReturnStatement ( ReturnStatement node ) : void
VisitSimpleType ( SimpleType node ) : void
VisitSizeOfExpression ( SizeOfExpression node ) : void
VisitStackAllocExpression ( StackAllocExpression node ) : void
VisitSwitchSection ( SwitchSection node ) : void
VisitSwitchStatement ( SwitchStatement node ) : void
VisitSyntaxTree ( SyntaxTree node ) : void
VisitText ( TextNode node ) : void
VisitThisReferenceExpression ( ThisReferenceExpression node ) : void
VisitThrowStatement ( ThrowStatement node ) : void
VisitTryCatchStatement ( TryCatchStatement node ) : void
VisitTypeDeclaration ( TypeDeclaration node ) : void
VisitTypeOfExpression ( TypeOfExpression node ) : void
VisitTypeParameterDeclaration ( TypeParameterDeclaration node ) : void
VisitTypeReferenceExpression ( TypeReferenceExpression node ) : void
VisitUnaryOperatorExpression ( UnaryOperatorExpression node ) : void
VisitUncheckedExpression ( UncheckedExpression node ) : void
VisitUncheckedStatement ( UncheckedStatement node ) : void
VisitUndocumentedExpression ( UndocumentedExpression node ) : void
VisitUnsafeStatement ( UnsafeStatement node ) : void
VisitUsingAliasDeclaration ( UsingAliasDeclaration node ) : void
VisitUsingDeclaration ( UsingDeclaration node ) : void
VisitUsingStatement ( UsingStatement node ) : void
VisitVariableDeclarationStatement ( VariableDeclarationStatement node ) : void
VisitVariableInitializer ( VariableInitializer node ) : void
VisitWhileStatement ( WhileStatement node ) : void
VisitWhitespace ( WhitespaceNode node ) : void
VisitYieldBreakStatement ( YieldBreakStatement node ) : void
VisitYieldReturnStatement ( YieldReturnStatement node ) : void

Private Methods

Method Description
CreateDefaultValue ( IType type ) : Expression
FullReference ( ISymbol symbol ) : Expression
InsertFieldInitializersIntoConstructorBody ( IType type, ConstructorDeclaration declaration ) : void
IsFloatingPointTypeCode ( KnownTypeCode code ) : bool
IsIntegerTypeCode ( KnownTypeCode code ) : bool
LoweringContext ( InputContext context ) : System.Collections.Generic
NotSupported ( AstNode node ) : void
TypeCode ( IType type ) : KnownTypeCode
UnparenthesizedParent ( AstNode node ) : AstNode
VisitChildren ( AstNode node ) : void
WillConvertOperandsToIntegers ( AstNode node ) : bool

Method Details

Lower() public static method

public static Lower ( InputContext context ) : bool
context InputContext
return bool

VisitAccessor() public method

public VisitAccessor ( Accessor node ) : void
node Accessor
return void

VisitAnonymousMethodExpression() public method

public VisitAnonymousMethodExpression ( AnonymousMethodExpression node ) : void
node AnonymousMethodExpression
return void

VisitAnonymousTypeCreateExpression() public method

public VisitAnonymousTypeCreateExpression ( AnonymousTypeCreateExpression node ) : void
node AnonymousTypeCreateExpression
return void

VisitArrayCreateExpression() public method

public VisitArrayCreateExpression ( ArrayCreateExpression node ) : void
node ArrayCreateExpression
return void

VisitArrayInitializerExpression() public method

public VisitArrayInitializerExpression ( ArrayInitializerExpression node ) : void
node ArrayInitializerExpression
return void

VisitArraySpecifier() public method

public VisitArraySpecifier ( ArraySpecifier node ) : void
node ArraySpecifier
return void

VisitAsExpression() public method

public VisitAsExpression ( AsExpression node ) : void
node AsExpression
return void

VisitAssignmentExpression() public method

public VisitAssignmentExpression ( AssignmentExpression node ) : void
node AssignmentExpression
return void

VisitAttribute() public method

public VisitAttribute ( ICSharpCode node ) : void
node ICSharpCode
return void

VisitAttributeSection() public method

public VisitAttributeSection ( AttributeSection node ) : void
node AttributeSection
return void

VisitBaseReferenceExpression() public method

public VisitBaseReferenceExpression ( BaseReferenceExpression node ) : void
node BaseReferenceExpression
return void

VisitBinaryOperatorExpression() public method

public VisitBinaryOperatorExpression ( BinaryOperatorExpression node ) : void
node BinaryOperatorExpression
return void

VisitBlockStatement() public method

public VisitBlockStatement ( BlockStatement node ) : void
node BlockStatement
return void

VisitBreakStatement() public method

public VisitBreakStatement ( BreakStatement node ) : void
node BreakStatement
return void

VisitCSharpTokenNode() public method

public VisitCSharpTokenNode ( CSharpTokenNode node ) : void
node CSharpTokenNode
return void

VisitCaseLabel() public method

public VisitCaseLabel ( CaseLabel node ) : void
node CaseLabel
return void

VisitCastExpression() public method

public VisitCastExpression ( CastExpression node ) : void
node CastExpression
return void

VisitCatchClause() public method

public VisitCatchClause ( CatchClause node ) : void
node CatchClause
return void

VisitCheckedExpression() public method

public VisitCheckedExpression ( CheckedExpression node ) : void
node CheckedExpression
return void

VisitCheckedStatement() public method

public VisitCheckedStatement ( CheckedStatement node ) : void
node CheckedStatement
return void

VisitComment() public method

public VisitComment ( Comment node ) : void
node Comment
return void

VisitComposedType() public method

public VisitComposedType ( ComposedType node ) : void
node ComposedType
return void

VisitConditionalExpression() public method

public VisitConditionalExpression ( ConditionalExpression node ) : void
node ConditionalExpression
return void

VisitConstraint() public method

public VisitConstraint ( Constraint node ) : void
node Constraint
return void

VisitConstructorDeclaration() public method

public VisitConstructorDeclaration ( ConstructorDeclaration node ) : void
node ConstructorDeclaration
return void

VisitConstructorInitializer() public method

public VisitConstructorInitializer ( ConstructorInitializer node ) : void
node ConstructorInitializer
return void

VisitContinueStatement() public method

public VisitContinueStatement ( ContinueStatement node ) : void
node ContinueStatement
return void

VisitCustomEventDeclaration() public method

public VisitCustomEventDeclaration ( CustomEventDeclaration node ) : void
node CustomEventDeclaration
return void

VisitDefaultValueExpression() public method

public VisitDefaultValueExpression ( DefaultValueExpression node ) : void
node DefaultValueExpression
return void

VisitDelegateDeclaration() public method

public VisitDelegateDeclaration ( DelegateDeclaration node ) : void
node DelegateDeclaration
return void

VisitDestructorDeclaration() public method

public VisitDestructorDeclaration ( DestructorDeclaration node ) : void
node DestructorDeclaration
return void

VisitDirectionExpression() public method

public VisitDirectionExpression ( DirectionExpression node ) : void
node DirectionExpression
return void

VisitDoWhileStatement() public method

public VisitDoWhileStatement ( DoWhileStatement node ) : void
node DoWhileStatement
return void

VisitDocumentationReference() public method

public VisitDocumentationReference ( DocumentationReference node ) : void
node DocumentationReference
return void

VisitEmptyStatement() public method

public VisitEmptyStatement ( EmptyStatement node ) : void
node EmptyStatement
return void

VisitEnumMemberDeclaration() public method

public VisitEnumMemberDeclaration ( EnumMemberDeclaration node ) : void
node EnumMemberDeclaration
return void

VisitErrorNode() public method

public VisitErrorNode ( AstNode node ) : void
node AstNode
return void

VisitEventDeclaration() public method

public VisitEventDeclaration ( EventDeclaration node ) : void
node EventDeclaration
return void

VisitExpressionStatement() public method

public VisitExpressionStatement ( ExpressionStatement node ) : void
node ExpressionStatement
return void

VisitExternAliasDeclaration() public method

public VisitExternAliasDeclaration ( ExternAliasDeclaration node ) : void
node ExternAliasDeclaration
return void

VisitFieldDeclaration() public method

public VisitFieldDeclaration ( FieldDeclaration node ) : void
node FieldDeclaration
return void

VisitFixedFieldDeclaration() public method

public VisitFixedFieldDeclaration ( FixedFieldDeclaration node ) : void
node FixedFieldDeclaration
return void

VisitFixedStatement() public method

public VisitFixedStatement ( FixedStatement node ) : void
node FixedStatement
return void

VisitFixedVariableInitializer() public method

public VisitFixedVariableInitializer ( FixedVariableInitializer node ) : void
node FixedVariableInitializer
return void

VisitForStatement() public method

public VisitForStatement ( ForStatement node ) : void
node ForStatement
return void

VisitForeachStatement() public method

public VisitForeachStatement ( ForeachStatement node ) : void
node ForeachStatement
return void

VisitGotoCaseStatement() public method

public VisitGotoCaseStatement ( GotoCaseStatement node ) : void
node GotoCaseStatement
return void

VisitGotoDefaultStatement() public method

public VisitGotoDefaultStatement ( GotoDefaultStatement node ) : void
node GotoDefaultStatement
return void

VisitGotoStatement() public method

public VisitGotoStatement ( GotoStatement node ) : void
node GotoStatement
return void

VisitIdentifier() public method

public VisitIdentifier ( Identifier node ) : void
node Identifier
return void

VisitIdentifierExpression() public method

public VisitIdentifierExpression ( IdentifierExpression node ) : void
node IdentifierExpression
return void

VisitIfElseStatement() public method

public VisitIfElseStatement ( IfElseStatement node ) : void
node IfElseStatement
return void

VisitIndexerDeclaration() public method

public VisitIndexerDeclaration ( IndexerDeclaration node ) : void
node IndexerDeclaration
return void

VisitIndexerExpression() public method

public VisitIndexerExpression ( IndexerExpression node ) : void
node IndexerExpression
return void

VisitInvocationExpression() public method

public VisitInvocationExpression ( InvocationExpression node ) : void
node InvocationExpression
return void

VisitIsExpression() public method

public VisitIsExpression ( IsExpression node ) : void
node IsExpression
return void

VisitLabelStatement() public method

public VisitLabelStatement ( LabelStatement node ) : void
node LabelStatement
return void

VisitLambdaExpression() public method

public VisitLambdaExpression ( LambdaExpression node ) : void
node LambdaExpression
return void

VisitLockStatement() public method

public VisitLockStatement ( LockStatement node ) : void
node LockStatement
return void

VisitMemberReferenceExpression() public method

public VisitMemberReferenceExpression ( MemberReferenceExpression node ) : void
node MemberReferenceExpression
return void

VisitMemberType() public method

public VisitMemberType ( MemberType node ) : void
node MemberType
return void

VisitMethodDeclaration() public method

public VisitMethodDeclaration ( MethodDeclaration node ) : void
node MethodDeclaration
return void

VisitNamedArgumentExpression() public method

public VisitNamedArgumentExpression ( NamedArgumentExpression node ) : void
node NamedArgumentExpression
return void

VisitNamedExpression() public method

public VisitNamedExpression ( NamedExpression node ) : void
node NamedExpression
return void

VisitNamespaceDeclaration() public method

public VisitNamespaceDeclaration ( NamespaceDeclaration node ) : void
node NamespaceDeclaration
return void

VisitNewLine() public method

public VisitNewLine ( NewLineNode node ) : void
node NewLineNode
return void

VisitNullNode() public method

public VisitNullNode ( AstNode node ) : void
node AstNode
return void

VisitNullReferenceExpression() public method

public VisitNullReferenceExpression ( NullReferenceExpression node ) : void
node NullReferenceExpression
return void

VisitObjectCreateExpression() public method

public VisitObjectCreateExpression ( ObjectCreateExpression node ) : void
node ObjectCreateExpression
return void

VisitOperatorDeclaration() public method

public VisitOperatorDeclaration ( OperatorDeclaration node ) : void
node OperatorDeclaration
return void

VisitParameterDeclaration() public method

public VisitParameterDeclaration ( ParameterDeclaration node ) : void
node ParameterDeclaration
return void

VisitParenthesizedExpression() public method

public VisitParenthesizedExpression ( ParenthesizedExpression node ) : void
node ParenthesizedExpression
return void

VisitPatternPlaceholder() public method

public VisitPatternPlaceholder ( AstNode node, ICSharpCode.NRefactory.PatternMatching.Pattern pattern ) : void
node AstNode
pattern ICSharpCode.NRefactory.PatternMatching.Pattern
return void

VisitPointerReferenceExpression() public method

public VisitPointerReferenceExpression ( PointerReferenceExpression node ) : void
node PointerReferenceExpression
return void

VisitPreProcessorDirective() public method

public VisitPreProcessorDirective ( PreProcessorDirective node ) : void
node PreProcessorDirective
return void

VisitPrimitiveExpression() public method

public VisitPrimitiveExpression ( PrimitiveExpression node ) : void
node PrimitiveExpression
return void

VisitPrimitiveType() public method

public VisitPrimitiveType ( PrimitiveType node ) : void
node PrimitiveType
return void

VisitPropertyDeclaration() public method

public VisitPropertyDeclaration ( PropertyDeclaration node ) : void
node PropertyDeclaration
return void

VisitQueryContinuationClause() public method

public VisitQueryContinuationClause ( QueryContinuationClause node ) : void
node QueryContinuationClause
return void

VisitQueryExpression() public method

public VisitQueryExpression ( QueryExpression node ) : void
node QueryExpression
return void

VisitQueryFromClause() public method

public VisitQueryFromClause ( QueryFromClause node ) : void
node QueryFromClause
return void

VisitQueryGroupClause() public method

public VisitQueryGroupClause ( QueryGroupClause node ) : void
node QueryGroupClause
return void

VisitQueryJoinClause() public method

public VisitQueryJoinClause ( QueryJoinClause node ) : void
node QueryJoinClause
return void

VisitQueryLetClause() public method

public VisitQueryLetClause ( QueryLetClause node ) : void
node QueryLetClause
return void

VisitQueryOrderClause() public method

public VisitQueryOrderClause ( QueryOrderClause node ) : void
node QueryOrderClause
return void

VisitQueryOrdering() public method

public VisitQueryOrdering ( QueryOrdering node ) : void
node QueryOrdering
return void

VisitQuerySelectClause() public method

public VisitQuerySelectClause ( QuerySelectClause node ) : void
node QuerySelectClause
return void

VisitQueryWhereClause() public method

public VisitQueryWhereClause ( QueryWhereClause node ) : void
node QueryWhereClause
return void

VisitReturnStatement() public method

public VisitReturnStatement ( ReturnStatement node ) : void
node ReturnStatement
return void

VisitSimpleType() public method

public VisitSimpleType ( SimpleType node ) : void
node SimpleType
return void

VisitSizeOfExpression() public method

public VisitSizeOfExpression ( SizeOfExpression node ) : void
node SizeOfExpression
return void

VisitStackAllocExpression() public method

public VisitStackAllocExpression ( StackAllocExpression node ) : void
node StackAllocExpression
return void

VisitSwitchSection() public method

public VisitSwitchSection ( SwitchSection node ) : void
node SwitchSection
return void

VisitSwitchStatement() public method

public VisitSwitchStatement ( SwitchStatement node ) : void
node SwitchStatement
return void

VisitSyntaxTree() public method

public VisitSyntaxTree ( SyntaxTree node ) : void
node SyntaxTree
return void

VisitText() public method

public VisitText ( TextNode node ) : void
node TextNode
return void

VisitThisReferenceExpression() public method

public VisitThisReferenceExpression ( ThisReferenceExpression node ) : void
node ThisReferenceExpression
return void

VisitThrowStatement() public method

public VisitThrowStatement ( ThrowStatement node ) : void
node ThrowStatement
return void

VisitTryCatchStatement() public method

public VisitTryCatchStatement ( TryCatchStatement node ) : void
node TryCatchStatement
return void

VisitTypeDeclaration() public method

public VisitTypeDeclaration ( TypeDeclaration node ) : void
node TypeDeclaration
return void

VisitTypeOfExpression() public method

public VisitTypeOfExpression ( TypeOfExpression node ) : void
node TypeOfExpression
return void

VisitTypeParameterDeclaration() public method

public VisitTypeParameterDeclaration ( TypeParameterDeclaration node ) : void
node TypeParameterDeclaration
return void

VisitTypeReferenceExpression() public method

public VisitTypeReferenceExpression ( TypeReferenceExpression node ) : void
node TypeReferenceExpression
return void

VisitUnaryOperatorExpression() public method

public VisitUnaryOperatorExpression ( UnaryOperatorExpression node ) : void
node UnaryOperatorExpression
return void

VisitUncheckedExpression() public method

public VisitUncheckedExpression ( UncheckedExpression node ) : void
node UncheckedExpression
return void

VisitUncheckedStatement() public method

public VisitUncheckedStatement ( UncheckedStatement node ) : void
node UncheckedStatement
return void

VisitUndocumentedExpression() public method

public VisitUndocumentedExpression ( UndocumentedExpression node ) : void
node UndocumentedExpression
return void

VisitUnsafeStatement() public method

public VisitUnsafeStatement ( UnsafeStatement node ) : void
node UnsafeStatement
return void

VisitUsingAliasDeclaration() public method

public VisitUsingAliasDeclaration ( UsingAliasDeclaration node ) : void
node UsingAliasDeclaration
return void

VisitUsingDeclaration() public method

public VisitUsingDeclaration ( UsingDeclaration node ) : void
node UsingDeclaration
return void

VisitUsingStatement() public method

public VisitUsingStatement ( UsingStatement node ) : void
node UsingStatement
return void

VisitVariableDeclarationStatement() public method

public VisitVariableDeclarationStatement ( VariableDeclarationStatement node ) : void
node VariableDeclarationStatement
return void

VisitVariableInitializer() public method

public VisitVariableInitializer ( VariableInitializer node ) : void
node VariableInitializer
return void

VisitWhileStatement() public method

public VisitWhileStatement ( WhileStatement node ) : void
node WhileStatement
return void

VisitWhitespace() public method

public VisitWhitespace ( WhitespaceNode node ) : void
node WhitespaceNode
return void

VisitYieldBreakStatement() public method

public VisitYieldBreakStatement ( YieldBreakStatement node ) : void
node YieldBreakStatement
return void

VisitYieldReturnStatement() public method

public VisitYieldReturnStatement ( YieldReturnStatement node ) : void
node YieldReturnStatement
return void