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 MemberAccessExpression : Expression
10
public MemberAccessExpression()
14
public Expression Target {
15
get { return GetChildByRole(Roles.Expression); }
16
set { SetChildByRole(Roles.Expression, value); }
19
public Identifier MemberName {
20
get { return GetChildByRole(Roles.Identifier); }
21
set { SetChildByRole(Roles.Identifier, value); }
24
public AstNodeCollection<AstType> TypeArguments {
25
get { return GetChildrenByRole(Roles.TypeArgument); }
28
protected internal override bool DoMatch(AstNode other, ICSharpCode.NRefactory.PatternMatching.Match match)
30
var expr = other as MemberAccessExpression;
31
return expr != null &&
32
Target.DoMatch(expr.Target, match) &&
33
MemberName.DoMatch(expr.MemberName, match) &&
34
TypeArguments.DoMatch(expr.TypeArguments, match);
37
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
39
return visitor.VisitMemberAccessExpression(this, data);