16 references to Add
Microsoft.CodeAnalysis.CodeStyle (16)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (2)
108
matchKinds.
Add
(syntaxKinds.Convert<TSyntaxKind>(syntaxKinds.ObjectCreationExpression));
110
matchKinds.
Add
(syntaxKinds.Convert<TSyntaxKind>(syntaxKinds.ImplicitObjectCreationExpression.Value));
src\Analyzers\Core\Analyzers\UseObjectInitializer\AbstractUseObjectInitializerDiagnosticAnalyzer.cs (4)
74
matchKinds.
Add
(syntaxKinds.Convert<TSyntaxKind>(syntaxKinds.ObjectCreationExpression));
76
matchKinds.
Add
(syntaxKinds.Convert<TSyntaxKind>(syntaxKinds.ImplicitObjectCreationExpression.Value));
153
locations.
Add
(location1);
157
locations.
Add
(syntaxTree.GetLocation(TextSpan.FromBounds(match.Initializer.FullSpan.End, match.Statement.Span.End)));
src\Compilers\Core\Portable\Collections\TemporaryArrayExtensions.cs (2)
143
array.
Add
(value.Value);
152
array.
Add
(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeHelpers.cs (1)
63
builder.
Add
(currentNodeValue);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (1)
127
result.
Add
(new string(_concatenatedLowerCaseWords, characterSpan.Start, characterSpan.Length));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
37
result.
Add
(data);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringBreaker.cs (1)
35
parts.
Add
(span);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (4)
92
equivalenceVisitors.
Add
(new(this, compareMethodTypeParametersByIndex));
93
getHashCodeVisitors.
Add
(new(this, compareMethodTypeParametersByIndex));
218
builder.
Add
(namedType);
223
builder.
Add
(candidateType);