C# Class IronPython.Compiler.Ast.Node

Inheritance: System.Linq.Expressions.Expression
Show file Open project: jschementi/iron Class Usage Examples

Private Properties

Property Type Description
AddFrame System.Linq.Expressions.Expression
AssignValue System.Linq.Expressions.Expression
CanAssign bool
ConvertIfNeeded System.Linq.Expressions.Expression
Delete System.Linq.Expressions.Expression
GetDocumentation string
IndexToLocation Microsoft.Scripting.SourceLocation
MakeAssignment System.Linq.Expressions.Expression
MakeAssignment System.Linq.Expressions.Expression
PopLineUpdated System.Linq.Expressions.Expression
PushLineUpdated System.Linq.Expressions.Expression
RemoveDebugInfo System.Linq.Expressions.Expression
RemoveFrame System.Linq.Expressions.Expression
ToObjectArray System.Linq.Expressions.Expression[]
TransformAndDynamicConvert System.Linq.Expressions.Expression
TransformMaybeSingleLineSuite System.Linq.Expressions.Expression
TransformOrConstantNull System.Linq.Expressions.Expression
UpdateLineNumber System.Linq.Expressions.Expression
UpdateLineUpdated System.Linq.Expressions.Expression

Public Methods

Method Description
SetLoc ( IronPython.Compiler.Ast.PythonAst globalParent, IndexSpan span ) : void
SetLoc ( IronPython.Compiler.Ast.PythonAst globalParent, int start, int end ) : void
ToString ( ) : string
Walk ( IronPython.Compiler.Ast.PythonWalker walker ) : void

Protected Methods

Method Description
Node ( ) : Microsoft.Scripting

Private Methods

Method Description
AddFrame ( System.Linq.Expressions localContext, System.Linq.Expressions codeObject, System.Linq.Expressions body ) : Expression

Creates a method frame for tracking purposes and enforces recursion

AssignValue ( System.Linq.Expressions expression, System.Linq.Expressions value ) : Expression
CanAssign ( Type to, Type from ) : bool
ConvertIfNeeded ( System.Linq.Expressions expression, Type type ) : Expression
Delete ( System.Linq.Expressions expression ) : Expression
GetDocumentation ( Statement stmt ) : string
IndexToLocation ( int index ) : Microsoft.Scripting.SourceLocation
MakeAssignment ( System.Linq.Expressions variable, System.Linq.Expressions right ) : Expression
MakeAssignment ( System.Linq.Expressions variable, System.Linq.Expressions right, Microsoft.Scripting.SourceSpan span ) : Expression
PopLineUpdated ( System.Linq.Expressions saveCurrent ) : Expression
PushLineUpdated ( bool updated, System.Linq.Expressions saveCurrent ) : Expression
RemoveDebugInfo ( int prevStart, System.Linq.Expressions res ) : Expression
RemoveFrame ( System.Linq.Expressions expression ) : Expression

Removes the frames from generated code for when we're compiling the tracing delegate which will track the frames it's self.

ToObjectArray ( IList expressions ) : System.Linq.Expressions.Expression[]
TransformAndDynamicConvert ( Expression expression, Type type ) : Expression
TransformMaybeSingleLineSuite ( Statement body, Microsoft.Scripting.SourceLocation prevStart ) : Expression
TransformOrConstantNull ( Expression expression, Type type ) : Expression
UpdateLineNumber ( int line ) : Expression
UpdateLineUpdated ( bool updated ) : Expression

Method Details

Node() protected method

protected Node ( ) : Microsoft.Scripting
return Microsoft.Scripting

SetLoc() public method

public SetLoc ( IronPython.Compiler.Ast.PythonAst globalParent, IndexSpan span ) : void
globalParent IronPython.Compiler.Ast.PythonAst
span IndexSpan
return void

SetLoc() public method

public SetLoc ( IronPython.Compiler.Ast.PythonAst globalParent, int start, int end ) : void
globalParent IronPython.Compiler.Ast.PythonAst
start int
end int
return void

ToString() public method

public ToString ( ) : string
return string

Walk() public abstract method

public abstract Walk ( IronPython.Compiler.Ast.PythonWalker walker ) : void
walker IronPython.Compiler.Ast.PythonWalker
return void