58 references to Add
Microsoft.CodeAnalysis.CSharp (58)
Binder\Binder.cs (1)
774
diagnostics.
Add
(unmanagedCallersOnlyAttributeData == UnmanagedCallersOnlyAttributeData.Uninitialized
Binder\Binder_Expressions.cs (6)
1606
diagnostics.
Add
(diagnosticInfo, location);
7421
diagnostics.
Add
(new CSDiagnosticInfo(ErrorCode.WRN_LowercaseEllSuffix), Location.Create(node.SyntaxTree, new TextSpan(token.Span.End - 1, 1)));
7425
diagnostics.
Add
(new CSDiagnosticInfo(ErrorCode.WRN_LowercaseEllSuffix), Location.Create(node.SyntaxTree, new TextSpan(token.Span.End - 2, 1)));
8958
diagnostics.
Add
(errorInfo, expression.Location);
9754
diagnostics.
Add
(errorOpt ?? new CSDiagnosticInfo(ErrorCode.ERR_BadIndexLHS, expr.Display), node.Location);
11448
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)
466
diagnostics.
Add
(info, Location.Create(@delegate.SyntaxTree, TextSpan.FromBounds(@delegate.SpanStart, asterisk.Span.End)));
560
diagnostics.
Add
(new LazyUseSiteDiagnosticsInfoForNullableType(Compilation.LanguageVersion, constructedType), syntax.GetLocation());
571
diagnostics.
Add
(diagnosticInfo, syntax.Location);
664
diagnostics.
Add
(new LazyArrayElementCantBeRefAnyDiagnosticInfo(type), node.ElementType.GetLocation());
1340
diagnostics.
Add
(diagnosticInfo, node.Location);
2312
diagnostics.
Add
(info, where.Location);
2333
diagnostics.
Add
(errorInfo, where.Location);
2366
diagnostics.
Add
(errorInfo, where.Location);
2732
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));
1026
diagnostics.
Add
(diagnosticInfo, overridingMemberLocation);
1098
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());