C# Class Mono.CSharp.SideEffectConstant

The value is constant, but when emitted has a side effect. This is used by BitwiseAnd to ensure that the second expression is invoked regardless of the value of the left side.
Inheritance: Constant
显示文件 Open project: vargaz/mono Class Usage Examples

Public Properties

Property Type Description
value Constant

Public Methods

Method Description
ContainsEmitWithAwait ( ) : bool
ConvertExplicitly ( bool in_checked_context, System.TypeSpec target_type ) : Constant
Emit ( EmitContext ec ) : void
EmitSideEffect ( EmitContext ec ) : void
FlowAnalysis ( Mono.CSharp.FlowAnalysisContext fc ) : void
GetValue ( ) : object
GetValueAsLiteral ( ) : string
GetValueAsLong ( ) : long
SideEffectConstant ( Constant value, Mono.CSharp.Expression side_effect, Mono.CSharp.Location loc ) : System

Method Details

ContainsEmitWithAwait() public method

public ContainsEmitWithAwait ( ) : bool
return bool

ConvertExplicitly() public method

public ConvertExplicitly ( bool in_checked_context, System.TypeSpec target_type ) : Constant
in_checked_context bool
target_type System.TypeSpec
return Constant

Emit() public method

public Emit ( EmitContext ec ) : void
ec EmitContext
return void

EmitSideEffect() public method

public EmitSideEffect ( EmitContext ec ) : void
ec EmitContext
return void

FlowAnalysis() public method

public FlowAnalysis ( Mono.CSharp.FlowAnalysisContext fc ) : void
fc Mono.CSharp.FlowAnalysisContext
return void

GetValue() public method

public GetValue ( ) : object
return object

GetValueAsLiteral() public method

public GetValueAsLiteral ( ) : string
return string

GetValueAsLong() public method

public GetValueAsLong ( ) : long
return long

SideEffectConstant() public method

public SideEffectConstant ( Constant value, Mono.CSharp.Expression side_effect, Mono.CSharp.Location loc ) : System
value Constant
side_effect Mono.CSharp.Expression
loc Mono.CSharp.Location
return System

Property Details

value public_oe property

public Constant,Mono.CSharp value
return Constant