Beispiel #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);
 }
Beispiel #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));
			}
		}
Beispiel #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));
			}
		}
Beispiel #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);
 }