C# Class Microsoft.Scripting.Debugging.CompilerServices.DebugContext

Provides services to compilers for instrumenting code with tracebacks.
显示文件 Open project: jschementi/iron Class Usage Examples

Private Properties

Property Type Description
CreateFrameForGenerator DebugFrame
CreateFunctionInfo FunctionInfo
CreateInstance DebugContext
DebugContext System
DispatchDebugEvent void
GetCurrentThread DebugThread
GetDebugSourceFile DebugSourceFile
Lookup DebugSourceFile

Public Methods

Method Description
CreateInstance ( ) : DebugContext

Creates a new instance of DebugContext

ResetSourceFile ( string sourceFileName ) : void

Resets a state associated with a source file that's maintained in the DebugContext

TransformLambda ( System.Linq.Expressions lambda ) : LambdaExpression

Transforms a LambdaExpression to a debuggable LambdaExpression

TransformLambda ( System.Linq.Expressions lambda, DebugLambdaInfo lambdaInfo ) : LambdaExpression

Transforms a LambdaExpression to a debuggable LambdaExpression

Private Methods

Method Description
CreateFrameForGenerator ( FunctionInfo func ) : DebugFrame
CreateFunctionInfo ( Delegate generatorFactory, string name, DebugSourceSpan locationSpanMap, IList scopedVariables, IList variables, object customPayload ) : FunctionInfo
CreateInstance ( IDebugThreadFactory runtimeThreadFactory ) : DebugContext
DebugContext ( IDebugThreadFactory runtimeThreadFactory ) : System
DispatchDebugEvent ( DebugThread thread, int debugMarker, TraceEventKind eventKind, object payload ) : void
GetCurrentThread ( ) : DebugThread
GetDebugSourceFile ( string sourceFile ) : DebugSourceFile
Lookup ( string sourceFile ) : DebugSourceFile

Method Details

CreateInstance() public static method

Creates a new instance of DebugContext
public static CreateInstance ( ) : DebugContext
return DebugContext

ResetSourceFile() public method

Resets a state associated with a source file that's maintained in the DebugContext
public ResetSourceFile ( string sourceFileName ) : void
sourceFileName string
return void

TransformLambda() public method

Transforms a LambdaExpression to a debuggable LambdaExpression
public TransformLambda ( System.Linq.Expressions lambda ) : LambdaExpression
lambda System.Linq.Expressions
return System.Linq.Expressions.LambdaExpression

TransformLambda() public method

Transforms a LambdaExpression to a debuggable LambdaExpression
public TransformLambda ( System.Linq.Expressions lambda, DebugLambdaInfo lambdaInfo ) : LambdaExpression
lambda System.Linq.Expressions
lambdaInfo DebugLambdaInfo
return System.Linq.Expressions.LambdaExpression