Ejemplo n.º 1
0
 public ArrayProperty(String ident, TypeNode type, DeclarationList indexes,
                      PropertySpecifiers specs, bool def)
     : base(ident, type, specs)
 {
     this.indexes    = indexes;
     this.specifiers = specs;
     this.isDefault  = def;
 }
Ejemplo n.º 2
0
        public PropertyDeclaration(String ident, TypeNode type, PropertySpecifiers specs = null)
            : base(ident, type)
        {
            this.specifiers = specs;

            if (type != null)             // no override
            {
                if (specs.read == null && specs.write == null)
                {
                    Error("Class property must have at least a Read of Write specified");
                }
            }
        }