11 references to Add
Microsoft.CodeAnalysis.CSharp (11)
BoundTree\BoundTreeVisitors.cs (1)
175
diagnostics.
Add
(ErrorCode.ERR_InsufficientStack, GetTooLongOrComplexExpressionErrorLocation(Node));
Compilation\CSharpCompilation.cs (1)
530
diagnostics.
Add
(ErrorCode.ERR_DebugEntryPointNotSourceMethodDefinition, Location.None);
FlowAnalysis\AbstractFlowPass.cs (1)
898
Diagnostics.
Add
(ErrorCode.ERR_InternalError, node.Syntax.Location);
FlowAnalysis\ControlFlowPass.cs (2)
351
Diagnostics.
Add
(ErrorCode.ERR_GoToForwardJumpOverUsingVar, sourceLocation);
363
Diagnostics.
Add
(ErrorCode.ERR_GoToBackwardJumpOverUsingVar, sourceLocation);
FlowAnalysis\DefiniteAssignment.cs (2)
412
Diagnostics.
Add
(ErrorCode.WRN_AsyncLacksAwaits, diagnosticLocation);
1295
Diagnostics.
Add
(ErrorCode.WRN_UseDefViolationThisSupportedVersion, node.Location);
Symbols\Source\LocalFunctionSymbol.cs (1)
77
_declarationDiagnostics.
Add
(ErrorCode.ERR_BadExtensionAgg, GetFirstLocation());
Symbols\Source\ModifierUtils.cs (1)
413
diagnostics.
Add
(
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (2)
667
diagnostics.
Add
(ErrorCode.WRN_GlobalAliasDefn, location);
672
diagnostics.
Add
(ErrorCode.ERR_NoAliasHere, location);