1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under MIT X11 license (for details please see \doc\license.txt)
6
namespace ICSharpCode.NRefactory.VB.Ast
8
public abstract class MemberDeclaration : AttributedNode
14
/// Description of ConstructorDeclaration.
16
public class ConstructorDeclaration : MemberDeclaration
18
public ConstructorDeclaration()
22
public AstNodeCollection<ParameterDeclaration> Parameters {
23
get { return GetChildrenByRole(Roles.Parameter); }
26
public BlockStatement Body {
27
get { return GetChildByRole(Roles.Body); }
28
set { SetChildByRole(Roles.Body, value); }
31
protected internal override bool DoMatch(AstNode other, ICSharpCode.NRefactory.PatternMatching.Match match)
33
var ctor = other as ConstructorDeclaration;
34
return ctor != null &&
35
MatchAttributesAndModifiers(ctor, match) &&
36
Parameters.DoMatch(ctor.Parameters, match) &&
37
Body.DoMatch(ctor.Body, match);
40
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
42
return visitor.VisitConstructorDeclaration(this, data);