public void Add(GenericParameterDeclarationSyntax item)
 {
     typeParameters.Add(item.TypeParameter);
     if (item.ConstraintClause != null)
     {
         constraintClauses.Add(item.ConstraintClause);
     }
 }
        public TParentSyntax Set(int index, GenericParameterDeclarationSyntax value)
        {
            if (this[index] == value)
            {
                return(node.Syntax);
            }

            this[index] = value;
            return(node.Syntax);
        }
 public GenericParameterDeclarationWithCodeAnalysis(string name)
     : this()
 {
     Syntax = new GenericParameterDeclarationSyntax(SyntaxFactory.TypeParameter(name), null);
 }
 public bool Contains(GenericParameterDeclarationSyntax item)
 {
     return(typeParameters.Contains(item.TypeParameter) &&
            (item.ConstraintClause == null || constraintClauses.Contains(item.ConstraintClause)));
 }
 public void Insert(int index, GenericParameterDeclarationSyntax item)
 {
     typeParameters.Insert(index, item.TypeParameter);
     constraintClauses.Insert(Math.Min(index, constraintClauses.Count), item.ConstraintClause);
 }
 public int IndexOf(GenericParameterDeclarationSyntax item)
 {
     return(typeParameters.IndexOf(item.TypeParameter));
 }