S IAstVisitor <T, S> .VisitTypeParameterDeclaration(TypeParameterDeclaration typeParameterDeclaration, T data) { var handler = TypeParameterDeclarationVisited; if (handler != null) { handler(typeParameterDeclaration, data); } return(VisitChildren(typeParameterDeclaration, data)); }
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); }
void IAstVisitor.VisitTypeParameterDeclaration(TypeParameterDeclaration typeParameterDeclaration) { Visit(EnterTypeParameterDeclaration, LeaveTypeParameterDeclaration, typeParameterDeclaration); }
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(); }