Метод | Описание | |
---|---|---|
Clone ( |
||
ContainsEmitWithAwait ( ) : bool | ||
ConvertExplicitly ( bool in_checked_context, System.TypeSpec target_type ) : |
Maybe ConvertTo name is better. It tries to convert `this' constant to target_type. It throws OverflowException
|
|
ConvertImplicitly ( System.TypeSpec type ) : |
||
CreateConstantFromValue ( System.TypeSpec t, object v, Mono.CSharp.Location loc ) : |
||
CreateExpressionTree ( |
||
EmitSideEffect ( |
||
Error_ValueCannotBeConverted ( |
||
ExtractConstantFromValue ( System.TypeSpec t, object v, Mono.CSharp.Location loc ) : |
||
GetTypedValue ( ) : object | ||
GetValue ( ) : object |
This is used to obtain the actual value of the literal cast into an object.
|
|
GetValueAsLiteral ( ) : string | ||
GetValueAsLong ( ) : long | ||
ImplicitConversionRequired ( |
||
IsDefaultInitializer ( System.TypeSpec type ) : bool |
Need to pass type as the constant can require a boxing and in such case no optimization is possible
|
|
MakeExpression ( |
||
Reduce ( |
||
Resolve ( |
||
ToString ( ) : string | ||
TryReduce ( |
Метод | Описание | |
---|---|---|
CloneTo ( |
||
Constant ( Mono.CSharp.Location loc ) : System | ||
DoResolve ( |
Метод | Описание | |
---|---|---|
ChangeType ( object value, System.TypeSpec targetType, bool &error ) : object | ||
TryReduceConstant ( |
public final Clone ( |
||
clonectx | ||
Результат | Mono.CSharp.Expression |
protected CloneTo ( |
||
clonectx | ||
target | Mono.CSharp.Expression | |
Результат | void |
protected Constant ( Mono.CSharp.Location loc ) : System | ||
loc | Mono.CSharp.Location | |
Результат | System |
public abstract ConvertExplicitly ( bool in_checked_context, System.TypeSpec target_type ) : |
||
in_checked_context | bool | |
target_type | System.TypeSpec | |
Результат |
public ConvertImplicitly ( System.TypeSpec type ) : |
||
type | System.TypeSpec | |
Результат |
public static CreateConstantFromValue ( System.TypeSpec t, object v, Mono.CSharp.Location loc ) : |
||
t | System.TypeSpec | |
v | object | |
loc | Mono.CSharp.Location | |
Результат |
public CreateExpressionTree ( |
||
ec | ||
Результат | Mono.CSharp.Expression |
protected DoResolve ( |
||
rc | ||
Результат | Mono.CSharp.Expression |
public EmitSideEffect ( |
||
ec | ||
Результат | void |
public Error_ValueCannotBeConverted ( |
||
ec | ||
target | System.TypeSpec | |
expl | bool | |
Результат | void |
public static ExtractConstantFromValue ( System.TypeSpec t, object v, Mono.CSharp.Location loc ) : |
||
t | System.TypeSpec | |
v | object | |
loc | Mono.CSharp.Location | |
Результат |
public abstract GetValueAsLiteral ( ) : string | ||
Результат | string |
public abstract GetValueAsLong ( ) : long | ||
Результат | long |
public ImplicitConversionRequired ( |
||
ec | ||
type | System.TypeSpec | |
Результат |
public IsDefaultInitializer ( System.TypeSpec type ) : bool | ||
type | System.TypeSpec | |
Результат | bool |
public MakeExpression ( |
||
ctx | ||
Результат | System.Linq.Expressions.Expression |
public Reduce ( |
||
ec | ||
target_type | System.TypeSpec | |
Результат |
public Resolve ( |
||
rc | ||
Результат | bool |
public TryReduce ( |
||
rc | ||
targetType | System.TypeSpec | |
Результат |