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 GetXmlNamespaceExpression : Expression
10
public GetXmlNamespaceExpression(XmlIdentifier namespaceName)
12
SetChildByRole(Roles.XmlIdentifier, namespaceName);
15
public XmlIdentifier NamespaceName {
16
get { return GetChildByRole(Roles.XmlIdentifier); }
17
set { SetChildByRole(Roles.XmlIdentifier, value); }
20
protected internal override bool DoMatch(AstNode other, ICSharpCode.NRefactory.PatternMatching.Match match)
22
var expr = other as GetXmlNamespaceExpression;
23
return expr != null &&
24
NamespaceName.DoMatch(expr.NamespaceName, match);
27
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
29
return visitor.VisitGetXmlNamespaceExpression(this, data);