예제 #1
0
 //=====================================================================
 /// <summary>
 /// Writes a property description.
 /// </summary>
 public void WriteProperty(StreamWriter w, PropertyDef p)
 {
     this.WriteThingWithDescription(
         w, p.Name, null, null, p.Description,
         p.Overridden, p.Source,
         null, null, p.IsIfcOnly);
 }
예제 #2
0
파일: Parser.cs 프로젝트: EricEve/docgen
        //=====================================================================
        /// <summary>
        /// Processes a line which appears to define a property.
        /// identifier "=" value
        /// </summary>
        /// <param name="name">the name of the property</param>
        private void ProcessProperty(String name, bool ifcOnly)
        {
            PropertyDef p;

            if (CurrClassOrObj == null)
                return;
            p = new PropertyDef(name, LastComment, this.CurrClassOrObj,
                                Path.GetFileName(CurrentFileName), LineNumber);
            p.IsIfcOnly = ifcOnly;
            CurrClassOrObj.Properties.Add(p);
            LastComment = "";
        }