public override bool DoMatch(INode other, Match match)
		{
			CSharp.IdentifierExpression ident = other as CSharp.IdentifierExpression;
			if (ident == null || ident.TypeArguments.Any())
				return false;
			CSharp.AstNode referenced = (CSharp.AstNode)match.Last(referencedGroupName);
			if (referenced == null)
				return false;
			return ident.Identifier == referenced.GetChildByRole(CSharp.Roles.Identifier).Name;
		}
Example #2
0
		public override bool DoMatch(INode other, Match match)
		{
            var referenedGroup = match.Last(referencedGroupName);
            return referenedGroup.IsMatch(other);
		}