public static DmlSyntaxError BadBinaryOperandTypes(string @operator, DmlType first, DmlType second) { return(new DmlSyntaxError( String.Format( "Invalid syntax; invalid operand types {0} and {1} for operator {2}.", @operator, first, second) )); }
/// <summary> /// The default error thrown when the argument type for a function is invalid. /// </summary> /// <param name="funcName"></param> /// <param name="argNum"></param> /// <param name="expected"></param> /// <param name="received"></param> /// <returns></returns> public static DmlSyntaxError BadArgumentType(string funcName, int argNum, DmlType expected, DmlType received) { return(new DmlSyntaxError( String.Format( "Invalid syntax; function {0} expects type {1} as argument {2}; got type {3} instead.", funcName, expected, argNum, received) )); }
/// <summary> /// The default error thrown when the argument type for a function is invalid. /// </summary> /// <param name="funcName"></param> /// <param name="argNum"></param> /// <param name="expected"></param> /// <param name="received"></param> /// <returns></returns> public static DmlSyntaxError BadArgumentType(string funcName, int argNum, DmlType expected, DmlType received) { return new DmlSyntaxError( String.Format( "Invalid syntax; function {0} expects type {1} as argument {2}; got type {3} instead.", funcName, expected, argNum, received) ); }
public static DmlSyntaxError BadUnaryOperandType(string @operator, DmlType operand) { return(new DmlSyntaxError( String.Format("Invalid syntax; invalid operand type {0} for unary operator {1}.", @operator, operand) )); }
public DmlObject(DmlType type, object value) { Type = type; Value = value; BoundVars = new Dictionary <string, DmlObject>(); }
private DmlOptionFactory(string name, string[] parameters, DmlType[] types) { this.name = name; Parameters = parameters; this.types = types; }
public DmlObject(DmlType type, object value) { Type = type; Value = value; BoundVars = new Dictionary<string, DmlObject>(); }
public static DmlObject Instantiate(string name, string[] parameters, DmlType[] types) { return new DmlObject(DmlType.Function, new DmlOptionFactory(name, parameters, types)); }
public static DmlSyntaxError BadBinaryOperandTypes(string @operator, DmlType first, DmlType second) { return new DmlSyntaxError( String.Format( "Invalid syntax; invalid operand types {0} and {1} for operator {2}.", @operator, first, second) ); }
public static DmlSyntaxError BadUnaryOperandType(string @operator, DmlType operand) { return new DmlSyntaxError( String.Format("Invalid syntax; invalid operand type {0} for unary operator {1}.", @operator, operand) ); }