Example #1
0
 public static ExprConstant CreateStringConstant(string str) =>
 CreateConstant(TypeManager.GetPredefAgg(PredefinedType.PT_STRING).getThisType(), ConstVal.Get(str));
Example #2
0
 public static ExprFieldInfo CreateFieldInfo(FieldSymbol field, AggregateType fieldType) =>
 new ExprFieldInfo(field, fieldType, TypeManager.GetPredefAgg(PredefinedType.PT_FIELDINFO).getThisType());
Example #3
0
 public static ExprTypeOf CreateTypeOf(CType sourceType) =>
 new ExprTypeOf(TypeManager.GetPredefAgg(PredefinedType.PT_TYPE).getThisType(), sourceType);
Example #4
0
 public static ExprPropertyInfo CreatePropertyInfo(PropertySymbol prop, AggregateType propertyType) =>
 new ExprPropertyInfo(TypeManager.GetPredefAgg(PredefinedType.PT_PROPERTYINFO).getThisType(), prop, propertyType);
Example #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);
Example #6
0
 public static ExprConstant CreateBoolConstant(bool b) =>
 CreateConstant(TypeManager.GetPredefAgg(PredefinedType.PT_BOOL).getThisType(), ConstVal.Get(b));
Example #7
0
 public static ExprConstant CreateIntegerConstant(int x) =>
 CreateConstant(TypeManager.GetPredefAgg(PredefinedType.PT_INT).getThisType(), ConstVal.Get(x));
Example #8
0
 public static AggregateSymbol GetPredefAgg(PredefinedType pt) => TypeManager.GetPredefAgg(pt);