コード例 #1
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);
            }
コード例 #2
0
 public procedure_attributes_list AddModifier(procedure_attributes_list proc_list, proc_attribute modif)
 {
     if (proc_list == null)
     {
         proc_list = new procedure_attributes_list();
     }
     foreach (procedure_attribute attr in proc_list.proc_attributes)
     {
         if (attr.attribute_type == modif)
         {
             return(proc_list);
         }
     }
     proc_list.proc_attributes.Add(new procedure_attribute(modif));
     return(proc_list);
 }
コード例 #3
0
ファイル: Tree.cs プロジェクト: lisiynos/pascalabcnet
		///<summary>
		///Конструктор с параметрами.
		///</summary>
		public procedure_attribute(string _name,proc_attribute _attribute_type,SourceContext sc)
		{
			this._name=_name;
			this._attribute_type=_attribute_type;
			source_context = sc;
		}
コード例 #4
0
ファイル: Tree.cs プロジェクト: lisiynos/pascalabcnet
		///<summary>
		///Конструктор с параметрами.
		///</summary>
		public procedure_attribute(string _name,proc_attribute _attribute_type)
		{
			this._name=_name;
			this._attribute_type=_attribute_type;
		}
コード例 #5
0
ファイル: Tree.cs プロジェクト: lisiynos/pascalabcnet
		///<summary>
		///Конструктор с параметрами.
		///</summary>
		public procedure_attribute(proc_attribute _attribute_type,SourceContext sc)
		{
			this._attribute_type=_attribute_type;
			source_context = sc;
		}
コード例 #6
0
ファイル: Tree.cs プロジェクト: lisiynos/pascalabcnet
		///<summary>
		///Конструктор с параметрами.
		///</summary>
		public procedure_attribute(proc_attribute _attribute_type)
		{
			this._attribute_type=_attribute_type;
		}
コード例 #7
0
 public procedure_attributes_list AddModifier(procedure_attributes_list proc_list, proc_attribute modif)
 {
     if (proc_list == null)
         proc_list = new procedure_attributes_list();
     foreach (procedure_attribute attr in proc_list.proc_attributes)
         if (attr.attribute_type == modif)
             return proc_list;
     proc_list.proc_attributes.Add(new procedure_attribute(modif));
     return proc_list;
 }