/// <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); } }
/// <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)); } } }
/// <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); }
public override void VisitFieldDeclList(FieldDeclList x) { //base.VisitFieldDeclList(x); var list = ParseDocumentation(x); if (list != null) { x.Annotations.Set<DocBlock>(new DocVarBlock(list)); } }