Esempio n. 1
0
 public static ExprConstant CreateStringConstant(string str) =>
 CreateConstant(TypeManager.GetPredefAgg(PredefinedType.PT_STRING).getThisType(), ConstVal.Get(str));
Esempio n. 2
0
 public static ExprFieldInfo CreateFieldInfo(FieldSymbol field, AggregateType fieldType) =>
 new ExprFieldInfo(field, fieldType, TypeManager.GetPredefAgg(PredefinedType.PT_FIELDINFO).getThisType());
Esempio n. 3
0
 public static ExprTypeOf CreateTypeOf(CType sourceType) =>
 new ExprTypeOf(TypeManager.GetPredefAgg(PredefinedType.PT_TYPE).getThisType(), sourceType);
Esempio n. 4
0
 public static ExprPropertyInfo CreatePropertyInfo(PropertySymbol prop, AggregateType propertyType) =>
 new ExprPropertyInfo(TypeManager.GetPredefAgg(PredefinedType.PT_PROPERTYINFO).getThisType(), prop, propertyType);
Esempio n. 5
0
 public static ExprMethodInfo CreateMethodInfo(MethodSymbol method, AggregateType methodType, TypeArray methodParameters) =>
 new ExprMethodInfo(
     TypeManager.GetPredefAgg(method.IsConstructor() ? PredefinedType.PT_CONSTRUCTORINFO : PredefinedType.PT_METHODINFO).getThisType(),
     method, methodType, methodParameters);
Esempio n. 6
0
 public static ExprConstant CreateBoolConstant(bool b) =>
 CreateConstant(TypeManager.GetPredefAgg(PredefinedType.PT_BOOL).getThisType(), ConstVal.Get(b));
Esempio n. 7
0
 public static ExprConstant CreateIntegerConstant(int x) =>
 CreateConstant(TypeManager.GetPredefAgg(PredefinedType.PT_INT).getThisType(), ConstVal.Get(x));
Esempio n. 8
0
 public static AggregateSymbol GetPredefAgg(PredefinedType pt) => TypeManager.GetPredefAgg(pt);