17 references to Add
Microsoft.CodeAnalysis.CSharp.Features (1)
ConvertProgram\ConvertProgramTransform_ProgramMain.cs (1)
115return oldClassDeclaration.WithMembers(oldClassDeclaration.Members.Add(method))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Syntax\SyntaxListTests.cs (2)
199var newList = list.Add(nodeD); 226Assert.Throws<ArgumentNullException>(() => list.Add(null));
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1880return clauses.Add(SyntaxFactory.TypeParameterConstraintClause(typeParameterName.ToIdentifierName(), constraints));
Microsoft.CodeAnalysis.VisualBasic.Features (3)
ChangeSignature\VisualBasicChangeSignatureService.vb (1)
327eventBlock = eventBlock.WithAccessors(eventBlock.Accessors.Remove(raiseEventAccessor).Add(updatedRaiseEventAccessor))
CodeFixes\Suppression\VisualBasicSuppressionCodeFixProvider.vb (1)
131Dim attributeStatement = SyntaxFactory.AttributesStatement(New SyntaxList(Of AttributeListSyntax)().Add(attributeList))
SplitOrMergeIfStatements\VisualBasicIfLikeStatementGenerator.vb (1)
112Return If(node IsNot Nothing, list.Add(node), list)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (5)
Syntax\SyntaxListTests.vb (4)
35Dim newList = list.Add(nodeD) 140Assert.Throws(Of ArgumentNullException)(Function() list.Add(Nothing)) 159Dim newList = list.Add(nodeD) 186Assert.Throws(Of ArgumentNullException)(Function() list.Add(Nothing))
TestSyntaxNodes.vb (1)
2931x = x.Add(node)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
CodeGeneration\VisualBasicSyntaxGenerator.vb (5)
554Return arrayType.WithRankSpecifiers(arrayType.RankSpecifiers.Add(SyntaxFactory.ArrayRankSpecifier())) 3201Return pb.WithAccessors(pb.Accessors.Add(accessor)) 3204Return eb.WithAccessors(eb.Accessors.Add(accessor)) 3315Return WithInherits(declaration, inh.Add(SyntaxFactory.InheritsStatement(DirectCast(interfaceType, TypeSyntax)))) 3325Return WithImplements(declaration, imp.Add(SyntaxFactory.ImplementsStatement(DirectCast(interfaceType, TypeSyntax))))