示例#1
0
        S IAstVisitor <T, S> .VisitTypeParameterDeclaration(TypeParameterDeclaration typeParameterDeclaration, T data)
        {
            var handler = TypeParameterDeclarationVisited;

            if (handler != null)
            {
                handler(typeParameterDeclaration, data);
            }
            return(VisitChildren(typeParameterDeclaration, data));
        }
示例#2
0
        public bool CheckTypeParameter(ICS.TypeParameterDeclaration node, InspectionData data)
        {
            if ((MatchKind != 0 && (MatchKind & DeclarationKinds.TypeParameter) == 0))
            {
                return(false);
            }

            string name = node.Name;

            if (IsValid(name))
            {
                return(true);
            }

            data.Add(GetFixableResult(node.NameToken.StartLocation, null, name));
            return(true);
        }
示例#3
0
 void IAstVisitor.VisitTypeParameterDeclaration(TypeParameterDeclaration typeParameterDeclaration)
 {
     Visit(EnterTypeParameterDeclaration, LeaveTypeParameterDeclaration, typeParameterDeclaration);
 }
示例#4
0
 public virtual S VisitTypeParameterDeclaration(TypeParameterDeclaration typeParameterDeclaration, T 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));
        }
 public virtual S VisitTypeParameterDeclaration(TypeParameterDeclaration typeParameterDeclaration, T data)
 {
     throw new NotImplementedException();
 }