Esempio n. 1
0
		public override void visit(property_accessors _property_accessors)
		{
			DefaultVisit(_property_accessors);
			pre_do_visit(_property_accessors);
			visit(property_accessors.read_accessor);
			visit(property_accessors.write_accessor);
			post_do_visit(_property_accessors);
		}
Esempio n. 2
0
		public virtual void post_do_visit(property_accessors _property_accessors)
		{
		}
Esempio n. 3
0
 public override void visit(property_accessors _property_accessors)
 {
     throw new NotImplementedException();
 }
Esempio n. 4
0
 public virtual void visit(property_accessors _property_accessors)
 {
 }
Esempio n. 5
0
        public property_accessors NewPropertySpecifiersWrite(ident tkWrite, ident opt_identifier, property_accessors property_specifiers, LexLocation loc)
        {
            var nnpsw = property_specifiers;

            if (nnpsw == null)
            {
                nnpsw = new property_accessors();
            }
            if (opt_identifier != null)
            {
                nnpsw.write_accessor = new write_accessor_name(opt_identifier, tkWrite.source_context.Merge(opt_identifier.source_context));
            }
            else
            {
                nnpsw.write_accessor = new write_accessor_name(opt_identifier, tkWrite.source_context);
            }
            nnpsw.source_context = loc;
            return(nnpsw);
        }
Esempio n. 6
0
 public virtual void visit(property_accessors _property_accessors)
 {
     DefaultVisit(_property_accessors);
 }
Esempio n. 7
0
        public simple_property NewSimplePropertyDefinition(method_name qualified_identifier, property_interface property_interface, property_accessors property_specifiers, proc_attribute virt_over_none_attr, property_array_default array_defaultproperty, LexLocation loc)
        {
            var nnspd = new simple_property();

            nnspd.virt_over_none_attr = virt_over_none_attr;

            nnspd.property_name = qualified_identifier.meth_name;
            if (property_interface != null)
            {
                nnspd.parameter_list   = property_interface.parameter_list;
                nnspd.property_type    = property_interface.property_type;
                nnspd.index_expression = property_interface.index_expression;
            }
            if (property_specifiers != null)
            {
                nnspd.accessors = property_specifiers;
            }
            if (array_defaultproperty != null)
            {
                nnspd.array_default = array_defaultproperty;
            }
            nnspd.source_context = loc;
            return(nnspd);
        }
Esempio n. 8
0
        public property_accessors NewPropertySpecifiersRead(ident tkRead, ident opt_identifier, property_accessors property_specifiers, LexLocation loc)
        {
            var nnps = property_specifiers;

            if (nnps == null)
            {
                nnps = new property_accessors();
            }
            if (opt_identifier != null && opt_identifier.name.ToLower() == "write")
            {
                nnps.read_accessor  = new read_accessor_name(null);
                nnps.write_accessor = new write_accessor_name(null);
                nnps.read_accessor.source_context  = tkRead.source_context;
                nnps.write_accessor.source_context = opt_identifier.source_context;
            }
            else
            {
                if (opt_identifier != null)
                {
                    nnps.read_accessor = new read_accessor_name(opt_identifier, tkRead.source_context.Merge(opt_identifier.source_context));
                }
                else
                {
                    nnps.read_accessor = new read_accessor_name(opt_identifier, tkRead.source_context);
                }
            }
            nnps.source_context = loc;
            return(nnps);
        }
Esempio n. 9
0
		public virtual void visit(property_accessors _property_accessors)
		{
		}
		public virtual void visit(property_accessors _property_accessors)
		{
			DefaultVisit(_property_accessors);
		}
Esempio n. 11
0
 public override void visit(property_accessors _property_accessors)
 {
     prepare_node(_property_accessors.read_accessor, "read accessor");
     prepare_node(_property_accessors.write_accessor, "write accessor");
 }
Esempio n. 12
0
 public override void visit(property_accessors _property_accessors)
 {
 }
Esempio n. 13
0
		public override void visit(property_accessors _property_accessors)
		{
			executer.visit(_property_accessors);
			if (_property_accessors.read_accessor != null)
				this.visit((dynamic)_property_accessors.read_accessor);
			if (_property_accessors.write_accessor != null)
				this.visit((dynamic)_property_accessors.write_accessor);
		}