public static MethodCall createVBMethodCall(String code, InterpretationContext context) { if (TypeConversionExpression.isVBTypeConversionExpression(code, context)) { return TypeConversionExpression.createVBTypeConversionExpression(code, context); } else { MethodCall mc = new MethodCall(code, context); mc.parse(code, new VBExpressionFactory()); return mc; } }
public static MethodCall createCSMethodCall(String code, InterpretationContext context) { MethodCall mc = new MethodCall(code, context); mc.parse(code, new CSExpressionFactory()); return mc; }