Пример #1
0
        S IAstVisitor <T, S> .VisitTypeParameterDeclaration(TypeParameterDeclaration typeParameterDeclaration, T data)
        {
            var handler = TypeParameterDeclarationVisited;

            if (handler != null)
            {
                handler(typeParameterDeclaration, data);
            }
            return(VisitChildren(typeParameterDeclaration, data));
        }
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            TypeParameterDeclaration o = other as TypeParameterDeclaration;

            return(o != null && this.Variance == o.Variance && MatchString(this.Name, o.Name) && this.Attributes.DoMatch(o.Attributes, match));
        }
Пример #3
0
 void IAstVisitor.VisitTypeParameterDeclaration(TypeParameterDeclaration typeParameterDeclaration)
 {
     Visit(EnterTypeParameterDeclaration, LeaveTypeParameterDeclaration, typeParameterDeclaration);
 }