58 references to Add
Microsoft.CodeAnalysis.CSharp (58)
Binder\Binder.cs (1)
774
diagnostics.
Add
(unmanagedCallersOnlyAttributeData == UnmanagedCallersOnlyAttributeData.Uninitialized
Binder\Binder_Expressions.cs (6)
1590
diagnostics.
Add
(diagnosticInfo, location);
7385
diagnostics.
Add
(new CSDiagnosticInfo(ErrorCode.WRN_LowercaseEllSuffix), Location.Create(node.SyntaxTree, new TextSpan(token.Span.End - 1, 1)));
7389
diagnostics.
Add
(new CSDiagnosticInfo(ErrorCode.WRN_LowercaseEllSuffix), Location.Create(node.SyntaxTree, new TextSpan(token.Span.End - 2, 1)));
8893
diagnostics.
Add
(errorInfo, expression.Location);
9670
diagnostics.
Add
(errorOpt ?? new CSDiagnosticInfo(ErrorCode.ERR_BadIndexLHS, expr.Display), node.Location);
11364
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)
465
diagnostics.
Add
(info, Location.Create(@delegate.SyntaxTree, TextSpan.FromBounds(@delegate.SpanStart, asterisk.Span.End)));
559
diagnostics.
Add
(new LazyUseSiteDiagnosticsInfoForNullableType(Compilation.LanguageVersion, constructedType), syntax.GetLocation());
570
diagnostics.
Add
(diagnosticInfo, syntax.Location);
663
diagnostics.
Add
(new LazyArrayElementCantBeRefAnyDiagnosticInfo(type), node.ElementType.GetLocation());
1339
diagnostics.
Add
(diagnosticInfo, node.Location);
2301
diagnostics.
Add
(info, where.Location);
2322
diagnostics.
Add
(errorInfo, where.Location);
2355
diagnostics.
Add
(errorInfo, where.Location);
2721
diagnostics.
Add
(diagInfo, location);
Binder\BindingDiagnosticBag.cs (3)
157
Add
(info, location);
170
Add
(info, location);
177
Add
(info, location);
Binder\ForEachLoopBinder.cs (1)
1924
diagnostics.
Add
(lookupResult.Error, collectionSyntax.Location);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (14)
616
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
650
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
705
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
775
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
799
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
806
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
833
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
853
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
867
diagnostics.
Add
(new CSDiagnosticInfo(ErrorCode.ERR_DuplicateNamedArgument, name), location);
901
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
946
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
984
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
1445
diagnostics.
Add
(
1502
diagnostics.
Add
(
Compilation\CSharpCompilation.cs (1)
1827
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)
425
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());