C# Class NJection.LambdaConverter.Expressions.Switch

Inheritance: AstExpression
Mostra file Open project: sagifogel/NJection.LambdaConverter Class Usage Examples

Public Methods

Method Description
Accept ( NJectionExpressionVisitor visitor ) : Expression
Reduce ( ) : Expression
Update ( Expression switchValue, IEnumerable cases, Expression defaultBody ) : Expression

Protected Methods

Method Description
Switch ( ICSharpCode.NRefactory.CSharp switchStatement, IScope scope, INRefcatoryExpressionVisitor visitor ) : System.Collections.Generic

Private Methods

Method Description
BuildSwitchCases ( ) : void

Method Details

Accept() public method

public Accept ( NJectionExpressionVisitor visitor ) : Expression
visitor NJection.LambdaConverter.Visitors.NJectionExpressionVisitor
return System.Linq.Expressions.Expression

Reduce() public method

public Reduce ( ) : Expression
return System.Linq.Expressions.Expression

Switch() protected method

protected Switch ( ICSharpCode.NRefactory.CSharp switchStatement, IScope scope, INRefcatoryExpressionVisitor visitor ) : System.Collections.Generic
switchStatement ICSharpCode.NRefactory.CSharp
scope IScope
visitor INRefcatoryExpressionVisitor
return System.Collections.Generic

Update() public method

public Update ( Expression switchValue, IEnumerable cases, Expression defaultBody ) : Expression
switchValue System.Linq.Expressions.Expression
cases IEnumerable
defaultBody System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression