58 references to Add
Microsoft.CodeAnalysis.CSharp (58)
Binder\Binder.cs (1)
821
diagnostics.
Add
(unmanagedCallersOnlyAttributeData == UnmanagedCallersOnlyAttributeData.Uninitialized
Binder\Binder_Expressions.cs (6)
1615
diagnostics.
Add
(diagnosticInfo, location);
7552
diagnostics.
Add
(new CSDiagnosticInfo(ErrorCode.WRN_LowercaseEllSuffix), Location.Create(node.SyntaxTree, new TextSpan(token.Span.End - 1, 1)));
7556
diagnostics.
Add
(new CSDiagnosticInfo(ErrorCode.WRN_LowercaseEllSuffix), Location.Create(node.SyntaxTree, new TextSpan(token.Span.End - 2, 1)));
9018
diagnostics.
Add
(errorInfo, expression.Location);
10597
diagnostics.
Add
(errorOpt ?? new CSDiagnosticInfo(ErrorCode.ERR_BadIndexLHS, expr.Display), node.Location);
12312
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)
468
diagnostics.
Add
(info, Location.Create(@delegate.SyntaxTree, TextSpan.FromBounds(@delegate.SpanStart, asterisk.Span.End)));
562
diagnostics.
Add
(new LazyUseSiteDiagnosticsInfoForNullableType(Compilation.LanguageVersion, constructedType), syntax.GetLocation());
573
diagnostics.
Add
(diagnosticInfo, syntax.Location);
666
diagnostics.
Add
(new LazyArrayElementCantBeRefAnyDiagnosticInfo(type), node.ElementType.GetLocation());
1343
diagnostics.
Add
(diagnosticInfo, node.Location);
2318
diagnostics.
Add
(info, where.Location);
2339
diagnostics.
Add
(errorInfo, where.Location);
2372
diagnostics.
Add
(errorInfo, where.Location);
2738
diagnostics.
Add
(diagInfo, location);
Binder\BindingDiagnosticBag.cs (3)
157
Add
(info, location);
170
Add
(info, location);
177
Add
(info, location);
Binder\ForEachLoopBinder.cs (1)
1936
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)
1848
diagnostics.
Add
(errorType.ErrorInfo, NoLocation.Singleton);
Errors\MessageID.cs (2)
446
diagnostics.
Add
(diagInfo, getLocation(data));
460
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)
453
diagnostics.
Add
(diagnosticInfo, attrList.Location);
Symbols\Source\ModifierUtils.cs (1)
133
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));
1034
diagnostics.
Add
(diagnosticInfo, overridingMemberLocation);
1106
diagnostics.
Add
(diagnosticInfo, overridingMemberLocation);
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
299
diagnostics.
Add
(
Symbols\TypeSymbol.cs (1)
2067
diagnostics.
Add
(useSiteDiagnostic, interfaceLocation);
Symbols\TypeWithAnnotations.cs (1)
1184
diagnostics.
Add
(new LazyObsoleteDiagnosticInfo(type, binder.ContainingMemberOrLambda, binder.Flags), syntax.GetLocation());