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 class AttributeBlock : AstNode
10
public readonly static Role<AttributeBlock> AttributeBlockRole = new Role<AttributeBlock>("AttributeBlock");
11
public readonly static Role<AttributeBlock> ReturnTypeAttributeBlockRole = new Role<AttributeBlock>("ReturnTypeAttributeBlock");
13
public VBTokenNode LChevron {
14
get { return GetChildByRole(Roles.LChevron); }
17
public AstNodeCollection<Attribute> Attributes {
18
get { return GetChildrenByRole(Attribute.AttributeRole); }
21
public VBTokenNode RChevron {
22
get { return GetChildByRole(Roles.RChevron); }
25
protected internal override bool DoMatch(AstNode other, ICSharpCode.NRefactory.PatternMatching.Match match)
27
var node = other as AttributeBlock;
28
return node != null && Attributes.DoMatch(node.Attributes, match);
31
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
33
return visitor.VisitAttributeBlock(this, data);