57 references to Add
Microsoft.CodeAnalysis.CSharp (57)
Binder\Binder.cs (1)
774
diagnostics.
Add
(unmanagedCallersOnlyAttributeData == UnmanagedCallersOnlyAttributeData.Uninitialized
Binder\Binder_Expressions.cs (6)
1576
diagnostics.
Add
(diagnosticInfo, location);
7386
diagnostics.
Add
(new CSDiagnosticInfo(ErrorCode.WRN_LowercaseEllSuffix), Location.Create(node.SyntaxTree, new TextSpan(token.Span.End - 1, 1)));
7390
diagnostics.
Add
(new CSDiagnosticInfo(ErrorCode.WRN_LowercaseEllSuffix), Location.Create(node.SyntaxTree, new TextSpan(token.Span.End - 2, 1)));
8869
diagnostics.
Add
(errorInfo, expression.Location);
9636
diagnostics.
Add
(errorOpt ?? new CSDiagnosticInfo(ErrorCode.ERR_BadIndexLHS, expr.Display), node.Location);
11328
diagnostics.
Add
(new CSDiagnosticInfo(ErrorCode.ERR_InvalidDelegateType, possibleDelegateType), getErrorLocation());
Binder\Binder_Invocation.cs (1)
387
diagnostics.
Add
(new CSDiagnosticInfo(ErrorCode.ERR_MethodNameExpected), expression.Location);
Binder\Binder_QueryErrors.cs (6)
48
diagnostics.
Add
(
55
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
63
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
71
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
207
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
239
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
Binder\Binder_Symbols.cs (9)
464
diagnostics.
Add
(info, Location.Create(@delegate.SyntaxTree, TextSpan.FromBounds(@delegate.SpanStart, asterisk.Span.End)));
558
diagnostics.
Add
(new LazyUseSiteDiagnosticsInfoForNullableType(Compilation.LanguageVersion, constructedType), syntax.GetLocation());
569
diagnostics.
Add
(diagnosticInfo, syntax.Location);
662
diagnostics.
Add
(new LazyArrayElementCantBeRefAnyDiagnosticInfo(type), node.ElementType.GetLocation());
1338
diagnostics.
Add
(diagnosticInfo, node.Location);
2281
diagnostics.
Add
(info, where.Location);
2302
diagnostics.
Add
(errorInfo, where.Location);
2335
diagnostics.
Add
(errorInfo, where.Location);
2701
diagnostics.
Add
(diagInfo, location);
Binder\BindingDiagnosticBag.cs (3)
157
Add
(info, location);
170
Add
(info, location);
177
Add
(info, location);
Binder\ForEachLoopBinder.cs (1)
1949
diagnostics.
Add
(lookupResult.Error, collectionSyntax.Location);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (13)
598
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
632
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
687
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
757
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
777
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
803
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
823
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
837
diagnostics.
Add
(new CSDiagnosticInfo(ErrorCode.ERR_DuplicateNamedArgument, name), location);
871
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
916
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
954
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
1415
diagnostics.
Add
(
1471
diagnostics.
Add
(
Compilation\CSharpCompilation.cs (1)
1801
diagnostics.
Add
(errorType.ErrorInfo, NoLocation.Singleton);
Errors\MessageID.cs (2)
437
diagnostics.
Add
(diagInfo, getLocation(data));
451
diagnostics.
Add
(diagInfo, location);
Lowering\LocalRewriter\LocalRewriter_Event.cs (2)
37
_diagnostics.
Add
(errorInfo, node.Syntax.Location);
278
_diagnostics.
Add
(new CSDiagnosticInfo(ErrorCode.ERR_MissingPredefinedMember, invocationListProperty.ContainingType, accessorName), syntax.Location);
Symbols\Source\LocalFunctionSymbol.cs (1)
408
diagnostics.
Add
(diagnosticInfo, attrList.Location);
Symbols\Source\ModifierUtils.cs (1)
126
diagnostics.
Add
(diagnosticInfo, modifier.GetLocation());
Symbols\Source\SourceAssemblySymbol.cs (3)
1044
diagnostics.
Add
(new CSDiagnosticInfo(ErrorCode.ERR_BindToBogus, m), NoLocation.Singleton);
1342
diagnostics.
Add
(attribute.ErrorInfo, NoLocation.Singleton);
1424
diagnostics.
Add
(info, NoLocation.Singleton);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (4)
230
diagnostics.
Add
(info, implementingEvent.GetFirstLocation());
290
diagnostics.
Add
(useSiteDiagnostic, GetImplementsLocationOrFallback(@interface));
1011
diagnostics.
Add
(diagnosticInfo, overridingMemberLocation);
1083
diagnostics.
Add
(diagnosticInfo, overridingMemberLocation);
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
294
diagnostics.
Add
(
Symbols\TypeSymbol.cs (1)
2046
diagnostics.
Add
(useSiteDiagnostic, interfaceLocation);
Symbols\TypeWithAnnotations.cs (1)
1184
diagnostics.
Add
(new LazyObsoleteDiagnosticInfo(type, binder.ContainingMemberOrLambda, binder.Flags), syntax.GetLocation());