public static bool IsDelegate(this ConstantValueStatement constantValueStatement) { return(constantValueStatement.TypeDescriptor.DataType == DataTypes.Delegate); }
public static bool IsArray(this ConstantValueStatement constantValueStatement) { var dataType = constantValueStatement.TypeDescriptor.DataType; return((dataType & DataTypes.Array) == DataTypes.Array); }
public static bool IsObject(this ConstantValueStatement constantValueStatement) { return(constantValueStatement.TypeDescriptor.DataType == DataTypes.Class); }
public static bool IsString(this ConstantValueStatement constantValueStatement) { return(constantValueStatement.TypeDescriptor.DataType == DataTypes.String); }
public static bool IsVoid(this ConstantValueStatement constantValueStatement) { return(constantValueStatement.TypeDescriptor.DataType == DataTypes.Void); }
public static bool IsBoolean(this ConstantValueStatement constantValueStatement) { return(constantValueStatement.TypeDescriptor.DataType == DataTypes.Boolean); }
public static bool IsInteger(this ConstantValueStatement constantValueStatement) { return(constantValueStatement.TypeDescriptor.DataType == DataTypes.Integer); }
public static bool IsFloat(this ConstantValueStatement constantValueStatement) { return(constantValueStatement.TypeDescriptor.DataType == DataTypes.Float); }
public static bool IsNumericOrFloat(this ConstantValueStatement constantValueStatement) { var dataType = constantValueStatement.TypeDescriptor.DataType; return(dataType == DataTypes.Numeric || dataType == DataTypes.Float); }
public FunctionParameterDefinitionStatement( TypeDescriptor typeDescriptor, string name, ConstantValueStatement defaultValue, StatementInfo info, bool dynamicType) : base(typeDescriptor, name, defaultValue, defaultValue != null, info) { DynamicType = dynamicType; }