14 references to Add
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
257list = list.Add(TupleElement(element.Type.GenerateTypeSyntax(), name));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
169_currentNonDiscardVariables = _currentNonDiscardVariables.Add(variable);
Microsoft.CodeAnalysis.CSharp.Features (2)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (2)
55var ids = new SeparatedSyntaxList<ExpressionSyntax>().Add(id); 161.Add(Attribute(attributeName, attributeArguments));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Syntax\SeparatedSyntaxListTests.cs (2)
247var newList = list.Add(nodeD); 272Assert.Throws<ArgumentNullException>(() => list.Add(null));
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
257list = list.Add(TupleElement(element.Type.GenerateTypeSyntax(), name));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
169_currentNonDiscardVariables = _currentNonDiscardVariables.Add(variable);
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (4)
Syntax\SeparatedSyntaxListTests.vb (4)
41Dim newList = list.Add(nodeD) 146Assert.Throws(Of ArgumentNullException)(Function() list.Add(Nothing)) 165Dim newList = list.Add(nodeD) 192Assert.Throws(Of ArgumentNullException)(Function() list.Add(Nothing))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
CodeGeneration\VisualBasicSyntaxGenerator.vb (2)
1408Return SyntaxFactory.ImportsStatement(SyntaxFactory.SeparatedList(Of ImportsClauseSyntax).Add( 2611constraints = constraints.Add(SyntaxFactory.NewConstraint(SyntaxFactory.Token(SyntaxKind.NewKeyword)))