예제 #1
0
 /// <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);
 }
예제 #2
0
		public override void VisitMethodDecl(MethodDecl x)
		{
			//base.VisitMethodDecl(x);

			var list = ParseDocumentation(x);

			if (list != null)
			{
				x.Annotations.Set<DocBlock>(new DocMethodBlock(list));
			}
		}
예제 #3
0
		/// <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));
			}
		}
예제 #4
0
 /// <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);
 }