コード例 #1
0
 public static bool IsDelegate(this ConstantValueStatement constantValueStatement)
 {
     return(constantValueStatement.TypeDescriptor.DataType == DataTypes.Delegate);
 }
コード例 #2
0
        public static bool IsArray(this ConstantValueStatement constantValueStatement)
        {
            var dataType = constantValueStatement.TypeDescriptor.DataType;

            return((dataType & DataTypes.Array) == DataTypes.Array);
        }
コード例 #3
0
 public static bool IsObject(this ConstantValueStatement constantValueStatement)
 {
     return(constantValueStatement.TypeDescriptor.DataType == DataTypes.Class);
 }
コード例 #4
0
 public static bool IsString(this ConstantValueStatement constantValueStatement)
 {
     return(constantValueStatement.TypeDescriptor.DataType == DataTypes.String);
 }
コード例 #5
0
 public static bool IsVoid(this ConstantValueStatement constantValueStatement)
 {
     return(constantValueStatement.TypeDescriptor.DataType == DataTypes.Void);
 }
コード例 #6
0
 public static bool IsBoolean(this ConstantValueStatement constantValueStatement)
 {
     return(constantValueStatement.TypeDescriptor.DataType == DataTypes.Boolean);
 }
コード例 #7
0
 public static bool IsInteger(this ConstantValueStatement constantValueStatement)
 {
     return(constantValueStatement.TypeDescriptor.DataType == DataTypes.Integer);
 }
コード例 #8
0
 public static bool IsFloat(this ConstantValueStatement constantValueStatement)
 {
     return(constantValueStatement.TypeDescriptor.DataType == DataTypes.Float);
 }
コード例 #9
0
        public static bool IsNumericOrFloat(this ConstantValueStatement constantValueStatement)
        {
            var dataType = constantValueStatement.TypeDescriptor.DataType;

            return(dataType == DataTypes.Numeric || dataType == DataTypes.Float);
        }
コード例 #10
0
 public FunctionParameterDefinitionStatement(
     TypeDescriptor typeDescriptor, string name, ConstantValueStatement defaultValue, StatementInfo info, bool dynamicType)
     : base(typeDescriptor, name, defaultValue, defaultValue != null, info)
 {
     DynamicType = dynamicType;
 }