21 references to Add
Microsoft.CodeAnalysis (6)
CommandLine\TouchedFileLogger.cs (2)
34
_readFiles.
Add
(path);
44
_writtenFiles.
Add
(path);
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
512
analysisOptions.LogAnalyzerExecutionTime, addCategorizedLocalDiagnostic, addCategorizedNonLocalDiagnostic, s => _programmaticSuppressions!.
Add
(s));
1998
suppressedDiagnosticIds?.
Add
(diagnostic.Id);
InternalUtilities\ConcurrentSet.cs (2)
93
Add
(v);
173
Add
(item);
Microsoft.CodeAnalysis.CSharp (7)
Compilation\CSharpCompilation.cs (1)
2449
LazyInitializer.EnsureInitialized(ref _moduleInitializerMethods).
Add
(method);
Emitter\Model\PEModuleBuilder.cs (2)
989
if (_reportedErrorTypesMap.
Add
(errorType))
1090
if (!_reportedErrorTypesMap.
Add
(namedTypeSymbol))
FlowAnalysis\DefiniteAssignment.cs (1)
2664
if (seen.
Add
(type))
Symbols\Compilation_UsedAssemblies.cs (1)
250
bool added = _lazyUsedAssemblyReferences.
Add
(assembly);
Symbols\Source\SourceAssemblySymbol.cs (2)
1182
_lazyOmittedAttributeIndices.
Add
(index);
2656
_unreadFields.
Add
(field);
Microsoft.CodeAnalysis.Test.Utilities (8)
Diagnostics\CommonDiagnosticAnalyzers.cs (8)
765
CallbackSymbols.
Add
(context.Symbol);
1154
pendingSymbols.
Add
(type);
2047
if (!SymbolsStarted.
Add
(symbolStartContext.Symbol))
2057
if (!symbolsEnded.
Add
(symbolEndContext.Symbol))
2428
_symbolCallbacks.
Add
(c.Symbol);
2438
_symbolCallbacks.
Add
(symbolEndContext.Symbol);
2450
_symbolCallbacks.
Add
(c.Symbol);
2957
CanceledCompilations.
Add
(compilation);