C# Class Boo.Lang.Compiler.Ast.AstUtil

Mostrar archivo Open project: boo/boo-lang Class Usage Examples

Public Methods

Method Description
BuildUniqueTypeMemberName ( Boo.Lang.Compiler.Ast.TypeDefinition type, string name ) : string
CreateConstructor ( Node lexicalInfoProvider, TypeMemberModifiers modifiers ) : Constructor
CreateMethodInvocationExpression ( Expression target, Expression arg ) : MethodInvocationExpression
CreateMethodInvocationExpression ( LexicalInfo li, Expression target, Expression arg ) : MethodInvocationExpression
CreateReferenceExpression ( LexicalInfo li, string fullname ) : ReferenceExpression
CreateReferenceExpression ( string fullname ) : ReferenceExpression
DebugNode ( Node node ) : void
FromXml ( Type type, string code ) : Node
GetMemberAnchor ( Node node ) : Node
GetMethodNameForOperator ( BinaryOperatorType op ) : string
GetMethodNameForOperator ( UnaryOperatorType op ) : string
GetParentClass ( Node node ) : ClassDefinition
GetParentTryExceptEnsure ( Node node ) : Node
IsAssignment ( Expression node ) : bool
IsAssignmentOperator ( BinaryOperatorType op ) : bool
IsComplexSlice ( Boo.Lang.Compiler.Ast.Slice slice ) : bool
IsComplexSlicing ( Boo.Lang.Compiler.Ast.SlicingExpression node ) : bool
IsExplodeExpression ( Node node ) : bool
IsIncDec ( Node node ) : bool
IsLhsOfAssignment ( Expression node ) : bool
IsLhsOfInPlaceAddSubtract ( Expression node ) : bool
IsListGenerator ( Boo.Lang.Compiler.Ast.ListLiteralExpression node ) : bool
IsListGenerator ( Node node ) : bool
IsListMultiGenerator ( Boo.Lang.Compiler.Ast.ListLiteralExpression node ) : bool
IsListMultiGenerator ( Node node ) : bool
IsOverloadableOperator ( BinaryOperatorType op ) : bool
IsPostUnaryOperator ( UnaryOperatorType op ) : bool
IsTargetOfGenericMethodInvocation ( Expression node ) : bool
IsTargetOfMemberReference ( Expression node ) : bool
IsTargetOfMethodInvocation ( Expression node ) : bool
IsTargetOfSlicing ( Expression node ) : bool
SafeToCodeString ( Node node ) : string
ToXml ( Node node ) : string

Private Methods

Method Description
AstUtil ( ) : System

Method Details

BuildUniqueTypeMemberName() public static method

public static BuildUniqueTypeMemberName ( Boo.Lang.Compiler.Ast.TypeDefinition type, string name ) : string
type Boo.Lang.Compiler.Ast.TypeDefinition
name string
return string

CreateConstructor() public static method

public static CreateConstructor ( Node lexicalInfoProvider, TypeMemberModifiers modifiers ) : Constructor
lexicalInfoProvider Node
modifiers TypeMemberModifiers
return Constructor

CreateMethodInvocationExpression() public static method

public static CreateMethodInvocationExpression ( Expression target, Expression arg ) : MethodInvocationExpression
target Expression
arg Expression
return MethodInvocationExpression

CreateMethodInvocationExpression() public static method

public static CreateMethodInvocationExpression ( LexicalInfo li, Expression target, Expression arg ) : MethodInvocationExpression
li LexicalInfo
target Expression
arg Expression
return MethodInvocationExpression

CreateReferenceExpression() public static method

public static CreateReferenceExpression ( LexicalInfo li, string fullname ) : ReferenceExpression
li LexicalInfo
fullname string
return ReferenceExpression

CreateReferenceExpression() public static method

public static CreateReferenceExpression ( string fullname ) : ReferenceExpression
fullname string
return ReferenceExpression

DebugNode() public static method

public static DebugNode ( Node node ) : void
node Node
return void

FromXml() public static method

public static FromXml ( Type type, string code ) : Node
type System.Type
code string
return Node

GetMemberAnchor() public static method

public static GetMemberAnchor ( Node node ) : Node
node Node
return Node

GetMethodNameForOperator() public static method

public static GetMethodNameForOperator ( BinaryOperatorType op ) : string
op BinaryOperatorType
return string

GetMethodNameForOperator() public static method

public static GetMethodNameForOperator ( UnaryOperatorType op ) : string
op UnaryOperatorType
return string

GetParentClass() public static method

public static GetParentClass ( Node node ) : ClassDefinition
node Node
return ClassDefinition

GetParentTryExceptEnsure() public static method

public static GetParentTryExceptEnsure ( Node node ) : Node
node Node
return Node

IsAssignment() public static method

public static IsAssignment ( Expression node ) : bool
node Expression
return bool

IsAssignmentOperator() public static method

public static IsAssignmentOperator ( BinaryOperatorType op ) : bool
op BinaryOperatorType
return bool

IsComplexSlice() public static method

public static IsComplexSlice ( Boo.Lang.Compiler.Ast.Slice slice ) : bool
slice Boo.Lang.Compiler.Ast.Slice
return bool

IsComplexSlicing() public static method

public static IsComplexSlicing ( Boo.Lang.Compiler.Ast.SlicingExpression node ) : bool
node Boo.Lang.Compiler.Ast.SlicingExpression
return bool

IsExplodeExpression() public static method

public static IsExplodeExpression ( Node node ) : bool
node Node
return bool

IsIncDec() public static method

public static IsIncDec ( Node node ) : bool
node Node
return bool

IsLhsOfAssignment() public static method

public static IsLhsOfAssignment ( Expression node ) : bool
node Expression
return bool

IsLhsOfInPlaceAddSubtract() public static method

public static IsLhsOfInPlaceAddSubtract ( Expression node ) : bool
node Expression
return bool

IsListGenerator() public static method

public static IsListGenerator ( Boo.Lang.Compiler.Ast.ListLiteralExpression node ) : bool
node Boo.Lang.Compiler.Ast.ListLiteralExpression
return bool

IsListGenerator() public static method

public static IsListGenerator ( Node node ) : bool
node Node
return bool

IsListMultiGenerator() public static method

public static IsListMultiGenerator ( Boo.Lang.Compiler.Ast.ListLiteralExpression node ) : bool
node Boo.Lang.Compiler.Ast.ListLiteralExpression
return bool

IsListMultiGenerator() public static method

public static IsListMultiGenerator ( Node node ) : bool
node Node
return bool

IsOverloadableOperator() public static method

public static IsOverloadableOperator ( BinaryOperatorType op ) : bool
op BinaryOperatorType
return bool

IsPostUnaryOperator() public static method

public static IsPostUnaryOperator ( UnaryOperatorType op ) : bool
op UnaryOperatorType
return bool

IsTargetOfGenericMethodInvocation() public static method

public static IsTargetOfGenericMethodInvocation ( Expression node ) : bool
node Expression
return bool

IsTargetOfMemberReference() public static method

public static IsTargetOfMemberReference ( Expression node ) : bool
node Expression
return bool

IsTargetOfMethodInvocation() public static method

public static IsTargetOfMethodInvocation ( Expression node ) : bool
node Expression
return bool

IsTargetOfSlicing() public static method

public static IsTargetOfSlicing ( Expression node ) : bool
node Expression
return bool

SafeToCodeString() public static method

public static SafeToCodeString ( Node node ) : string
node Node
return string

ToXml() public static method

public static ToXml ( Node node ) : string
node Node
return string