Example #1
0
 /// <summary>
 /// Visit each FieldDecl in the given FieldDeclList.
 /// </summary>
 /// <param name="x"></param>
 virtual public void VisitFieldDeclList(FieldDeclList x)
 {
     foreach (FieldDecl f in x.Fields)
     {
         VisitElement(f);
     }
 }
Example #2
0
		/// <summary>
		/// Add list of fields to the current class.
		/// </summary>
		public override void VisitFieldDeclList(FieldDeclList x)
		{
            var cmt = x.PHPDoc;
            if (cmt == null) return;

			if (cmt.Access == PhpMemberAttributes.Public)
			{
				foreach (FieldDecl fld in x.Fields)
				{					
					currentClass.Members.Add(GenerateFieldCode(cmt, fld.Name.Value));
				}
			}
		}
Example #3
0
 /// <summary>
 /// Visit each FieldDecl in the given FieldDeclList.
 /// </summary>
 /// <param name="x"></param>
 virtual public void VisitFieldDeclList(FieldDeclList x)
 {
     foreach (FieldDecl f in x.Fields)
         VisitElement(f);
 }
Example #4
0
		public override void VisitFieldDeclList(FieldDeclList x)
		{
			//base.VisitFieldDeclList(x);

			var list = ParseDocumentation(x);

			if (list != null)
			{
				x.Annotations.Set<DocBlock>(new DocVarBlock(list));
			}
		}