C# Class DotNetWebToolkit.Cil2Js.JsResolvers.JsResolver

显示文件 Open project: chrisdunelm/DotNetWebToolkit Class Usage Examples

Public Methods

Method Description
JsName ( MemberReference m ) : string
ResolveCallSite ( ICall call ) : Expr

If a call/newobj requires translating to an Expr that is not a call/newobj, then it is done here.

ResolveMethod ( Ctx ctx ) : Stmt

If a method to directly provide an AST for a method is available, then find and use it here. The incoming ctx will contain the BCL method, not the custom method.

TranslateCtx ( Ctx ctx ) : Ctx

Translate the ctx for transcoding here. Used to translate methods in the BCL to custom methods.

TypeMap ( TypeReference tRef ) : TypeReference
TypeMapReverse ( TypeReference tRef ) : TypeReference

Private Methods

Method Description
DoesMatchMethod ( MethodReference mInternal, MethodReference m ) : bool
FindExprReturn ( ICall call, TypeReference forceMappedType = null ) : Expr
FindJsMember ( MethodReference mRef, TypeReference mappedTRef ) : MethodReference
FindMappedMethod ( MethodReference mRef ) : MethodReference
FindStmtReturn ( Ctx ctx ) : Stmt
GetRedirect ( MethodReference mRef ) : MethodReference
JsCase ( string s ) : string
JsResolver ( ) : System
PerformMapping ( TypeDefinition>.Dictionary map, TypeReference tRef ) : TypeReference
T ( string typeName ) : Type

Method Details

JsName() public static method

public static JsName ( MemberReference m ) : string
m MemberReference
return string

ResolveCallSite() public static method

If a call/newobj requires translating to an Expr that is not a call/newobj, then it is done here.
public static ResolveCallSite ( ICall call ) : Expr
call ICall
return Expr

ResolveMethod() public static method

If a method to directly provide an AST for a method is available, then find and use it here. The incoming ctx will contain the BCL method, not the custom method.
public static ResolveMethod ( Ctx ctx ) : Stmt
ctx Ctx
return Stmt

TranslateCtx() public static method

Translate the ctx for transcoding here. Used to translate methods in the BCL to custom methods.
public static TranslateCtx ( Ctx ctx ) : Ctx
ctx Ctx
return Ctx

TypeMap() public static method

public static TypeMap ( TypeReference tRef ) : TypeReference
tRef TypeReference
return TypeReference

TypeMapReverse() public static method

public static TypeMapReverse ( TypeReference tRef ) : TypeReference
tRef TypeReference
return TypeReference