/// <summary> /// Visit method parameters and method body. /// </summary> /// <param name="x"></param> virtual public void VisitMethodDecl(MethodDecl x) { // method parameters foreach (FormalParam p in x.Signature.FormalParams) VisitElement(p); // method body VisitStatements(x.Body); }
public override void VisitMethodDecl(MethodDecl x) { //base.VisitMethodDecl(x); var list = ParseDocumentation(x); if (list != null) { x.Annotations.Set<DocBlock>(new DocMethodBlock(list)); } }
/// <summary> /// Add method to the current class... /// </summary> public override void VisitMethodDecl(MethodDecl x) { // Skip constructors if (x.Name == Name.SpecialMethodNames.Construct) return; var cmt = x.PHPDoc; if (cmt == null) return; if (cmt.Access == PhpMemberAttributes.Public) { currentClass.Members.Add(GenerateFunctionCode(cmt, x.Name.Value)); } }
/// <summary> /// Visit method parameters and method body. /// </summary> /// <param name="x"></param> virtual public void VisitMethodDecl(MethodDecl x) { // method parameters foreach (FormalParam p in x.Signature.FormalParams) VisitElement(p); // method body VisitStatementList(x.Body); }