58 references to Add
Microsoft.CodeAnalysis.CSharp (58)
Binder\Binder.cs (1)
776
diagnostics.
Add
(unmanagedCallersOnlyAttributeData == UnmanagedCallersOnlyAttributeData.Uninitialized
Binder\Binder_Expressions.cs (6)
1612
diagnostics.
Add
(diagnosticInfo, location);
7549
diagnostics.
Add
(new CSDiagnosticInfo(ErrorCode.WRN_LowercaseEllSuffix), Location.Create(node.SyntaxTree, new TextSpan(token.Span.End - 1, 1)));
7553
diagnostics.
Add
(new CSDiagnosticInfo(ErrorCode.WRN_LowercaseEllSuffix), Location.Create(node.SyntaxTree, new TextSpan(token.Span.End - 2, 1)));
9090
diagnostics.
Add
(errorInfo, expression.Location);
9887
diagnostics.
Add
(errorOpt ?? new CSDiagnosticInfo(ErrorCode.ERR_BadIndexLHS, expr.Display), node.Location);
11581
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);
2314
diagnostics.
Add
(info, where.Location);
2335
diagnostics.
Add
(errorInfo, where.Location);
2368
diagnostics.
Add
(errorInfo, where.Location);
2734
diagnostics.
Add
(diagInfo, location);
Binder\BindingDiagnosticBag.cs (3)
157
Add
(info, location);
170
Add
(info, location);
177
Add
(info, location);
Binder\ForEachLoopBinder.cs (1)
1927
diagnostics.
Add
(lookupResult.Error, collectionSyntax.Location);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (14)
621
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
655
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
710
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
780
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
804
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
811
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
838
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
858
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
872
diagnostics.
Add
(new CSDiagnosticInfo(ErrorCode.ERR_DuplicateNamedArgument, name), location);
906
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
951
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
993
diagnostics.
Add
(new DiagnosticInfoWithSymbols(
1454
diagnostics.
Add
(
1511
diagnostics.
Add
(
Compilation\CSharpCompilation.cs (1)
1828
diagnostics.
Add
(errorType.ErrorInfo, NoLocation.Singleton);
Errors\MessageID.cs (2)
439
diagnostics.
Add
(diagInfo, getLocation(data));
453
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());