26 references to Add
Microsoft.CodeAnalysis (6)
CommandLine\TouchedFileLogger.cs (2)
34
_readFiles.
Add
(path);
44
_writtenFiles.
Add
(path);
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
505
analysisOptions.LogAnalyzerExecutionTime, addCategorizedLocalDiagnostic, addCategorizedNonLocalDiagnostic, s => _programmaticSuppressions!.
Add
(s), cancellationToken);
1907
suppressedDiagnosticIds?.
Add
(diagnostic.Id);
InternalUtilities\ConcurrentSet.cs (2)
93
Add
(v);
173
Add
(item);
Microsoft.CodeAnalysis.CSharp (7)
Compilation\CSharpCompilation.cs (1)
2247
LazyInitializer.EnsureInitialized(ref _moduleInitializerMethods).
Add
(method);
Emitter\Model\PEModuleBuilder.cs (2)
970
if (_reportedErrorTypesMap.
Add
(errorType))
1071
if (!_reportedErrorTypesMap.
Add
(namedTypeSymbol))
FlowAnalysis\DefiniteAssignment.cs (1)
2483
if (seen.
Add
(type))
Symbols\Compilation_UsedAssemblies.cs (1)
253
bool added = _lazyUsedAssemblyReferences.
Add
(assembly);
Symbols\Source\SourceAssemblySymbol.cs (2)
1175
_lazyOmittedAttributeIndices.
Add
(index);
2612
_unreadFields.
Add
(field);
Microsoft.CodeAnalysis.Test.Utilities (8)
Diagnostics\CommonDiagnosticAnalyzers.cs (8)
679
CallbackSymbols.
Add
(context.Symbol);
1044
pendingSymbols.
Add
(type);
1937
if (!SymbolsStarted.
Add
(symbolStartContext.Symbol))
1947
if (!symbolsEnded.
Add
(symbolEndContext.Symbol))
2282
_symbolCallbacks.
Add
(c.Symbol);
2292
_symbolCallbacks.
Add
(symbolEndContext.Symbol);
2304
_symbolCallbacks.
Add
(c.Symbol);
2631
CanceledCompilations.
Add
(compilation);
Microsoft.CodeAnalysis.VisualBasic (5)
Compilation\MethodCompiler.vb (1)
379
processedSymbols.
Add
(symbol)
Emit\SymbolTranslator.vb (2)
143
If _reportedErrorTypesMap.
Add
(errorType) Then
222
If Not _reportedErrorTypesMap.
Add
(namedTypeSymbol) Then
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.SymbolsCollection.vb (1)
312
If allSymbols.
Add
(symbol) Then
Symbols\UsedAssemblies.vb (1)
202
Dim added As Boolean = _lazyUsedAssemblyReferences.
Add
(assembly)