C# Class clojure.lang.CljCompiler.Ast.CaseExpr

Inheritance: clojure.lang.CljCompiler.Ast.Expr, MaybePrimitiveExpr
Exibir arquivo Open project: richhickey/clojure-clr

Private Properties

Property Type Description
GenCode Expression
GenResult Expression
GenShiftMask Expression
GenTestExprForHashes Expression
GenTestExprForInts Expression
GenTestForHashes Expression
GenTestForInts Expression

Public Methods

Method Description
CaseExpr ( IPersistentMap sourceSpan, LocalBindingExpr expr, int shift, int mask, int low, int high, clojure.lang.CljCompiler.Ast.Expr defaultExpr, Expr>.SortedDictionary tests, Expr>.Dictionary thens, Keyword switchType, Keyword testType, IPersistentSet skipCheck ) : Microsoft.Scripting.Ast
Eval ( ) : object
GenCode ( RHC rhc, ObjExpr objx, GenContext context ) : Expression

Equivalent to : switch (hashed _expr) case i: if _expr == _test_i goto end with _then_i else goto default ... default: (default_label) goto end with _default end end_label:

GenCodeUnboxed ( RHC rhc, ObjExpr objx, GenContext context ) : Expression

Private Methods

Method Description
GenCode ( RHC rhc, ObjExpr objx, GenContext context, bool genUnboxed ) : Expression
GenResult ( ObjExpr objx, GenContext context, clojure.lang.CljCompiler.Ast.Expr expr, bool genUnboxed, Type retType ) : Expression
GenShiftMask ( Expression expr ) : Expression
GenTestExprForHashes ( ObjExpr objx, GenContext context ) : Expression
GenTestExprForInts ( ObjExpr objx, GenContext context, Type exprType, LabelTarget defaultLabel ) : Expression
GenTestForHashes ( ObjExpr objx, GenContext context, clojure.lang.CljCompiler.Ast.Expr test, bool genUnboxed ) : Expression
GenTestForInts ( ObjExpr objx, GenContext context, Type primExprType, clojure.lang.CljCompiler.Ast.Expr test, bool genUnboxed ) : Expression

Method Details

CaseExpr() public method

public CaseExpr ( IPersistentMap sourceSpan, LocalBindingExpr expr, int shift, int mask, int low, int high, clojure.lang.CljCompiler.Ast.Expr defaultExpr, Expr>.SortedDictionary tests, Expr>.Dictionary thens, Keyword switchType, Keyword testType, IPersistentSet skipCheck ) : Microsoft.Scripting.Ast
sourceSpan IPersistentMap
expr LocalBindingExpr
shift int
mask int
low int
high int
defaultExpr clojure.lang.CljCompiler.Ast.Expr
tests Expr>.SortedDictionary
thens Expr>.Dictionary
switchType Keyword
testType Keyword
skipCheck IPersistentSet
return Microsoft.Scripting.Ast

Eval() public method

public Eval ( ) : object
return object

GenCode() public method

Equivalent to : switch (hashed _expr) case i: if _expr == _test_i goto end with _then_i else goto default ... default: (default_label) goto end with _default end end_label:
public GenCode ( RHC rhc, ObjExpr objx, GenContext context ) : Expression
rhc RHC
objx ObjExpr
context GenContext
return Expression

GenCodeUnboxed() public method

public GenCodeUnboxed ( RHC rhc, ObjExpr objx, GenContext context ) : Expression
rhc RHC
objx ObjExpr
context GenContext
return Expression