23 references to Add
Microsoft.CodeAnalysis.CSharp (23)
BoundTree\BoundTreeVisitors.cs (1)
175
diagnostics.
Add
(ErrorCode.ERR_InsufficientStack, GetTooLongOrComplexExpressionErrorLocation(Node));
Compilation\CSharpCompilation.cs (3)
530
diagnostics.
Add
(ErrorCode.ERR_DebugEntryPointNotSourceMethodDefinition, Location.None);
1906
diagnostics.
Add
(ErrorCode.ERR_SimpleProgramDisallowsMainType, NoLocation.Singleton);
3830
runtimeMDVersionDiagnostics.
Add
(ErrorCode.WRN_NoRuntimeMetadataVersion, NoLocation.Singleton);
Compiler\UnprocessedDocumentationCommentFinder.cs (1)
104
_diagnostics.
Add
(ErrorCode.WRN_UnprocessedXMLComment, new SourceLocation(trivia.SyntaxTree, new TextSpan(start, length)));
DocumentationComments\SourceDocumentationCommentUtils.cs (1)
81
diagnostics.
Add
(ErrorCode.WRN_UnprocessedXMLComment, new SourceLocation(tree, new TextSpan(start, length)));
FlowAnalysis\AbstractFlowPass.cs (1)
897
Diagnostics.
Add
(ErrorCode.ERR_InternalError, node.Syntax.Location);
FlowAnalysis\ControlFlowPass.cs (6)
142
Diagnostics.
Add
(ErrorCode.WRN_UnreferencedLabel, label.GetFirstLocation());
227
Diagnostics.
Add
(ErrorCode.ERR_BadDelegateLeave, loc);
268
Diagnostics.
Add
(ErrorCode.WRN_UnreachableCode, new SourceLocation(firstToken));
310
Diagnostics.
Add
(ErrorCode.ERR_BadFinallyLeave, location);
350
Diagnostics.
Add
(ErrorCode.ERR_GoToForwardJumpOverUsingVar, sourceLocation);
362
Diagnostics.
Add
(ErrorCode.ERR_GoToBackwardJumpOverUsingVar, sourceLocation);
FlowAnalysis\DefiniteAssignment.cs (2)
421
Diagnostics.
Add
(ErrorCode.WRN_AsyncLacksAwaits, diagnosticLocation);
1296
Diagnostics.
Add
(ErrorCode.WRN_UseDefViolationThisSupportedVersion, node.Location);
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
93
diagnostics.
Add
(ErrorCode.ERR_RefLocalAcrossAwait, syntax.Location);
Symbols\Source\LocalFunctionSymbol.cs (1)
77
_declarationDiagnostics.
Add
(ErrorCode.ERR_BadExtensionAgg, GetFirstLocation());
Symbols\Source\ModifierUtils.cs (1)
439
diagnostics.
Add
(
Symbols\Source\SourceMemberContainerSymbol.cs (1)
522
diagnostics.
Add
(error, location);
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (2)
667
diagnostics.
Add
(ErrorCode.WRN_GlobalAliasDefn, location);
672
diagnostics.
Add
(ErrorCode.ERR_NoAliasHere, location);
Symbols\Symbol_Attributes.cs (1)
230
arguments.Diagnostics.DiagnosticBag.
Add
(ErrorCode.ERR_InvalidExperimentalDiagID, attrArgumentLocation);
Symbols\SymbolExtensions.cs (1)
293
diagnostics.
Add
(ErrorCode.ERR_IllegalUnsafe, errorLocation);