8 references to DiagnosticLocation
Microsoft.CodeAnalysis.CSharp (8)
BoundTree\UnboundLambda.cs (5)
863
compilation.EnsureIsReadOnlyAttributeExists(diagnostics, lambdaSymbol.
DiagnosticLocation
, modifyCompilation: false);
874
compilation.EnsureNativeIntegerAttributeExists(diagnostics, lambdaSymbol.
DiagnosticLocation
, modifyCompilation: false);
880
compilation.EnsureNullableAttributeExists(diagnostics, lambdaSymbol.
DiagnosticLocation
, modifyCompilation: false);
898
diagnostics.Add(ErrorCode.ERR_AnonymousReturnExpected, lambdaSymbol.
DiagnosticLocation
, this.MessageID.Localize(), delegateType);
914
diagnostics.Add(ErrorCode.ERR_CantConvAsyncAnonFuncReturns, lambdaSymbol.
DiagnosticLocation
, lambdaSymbol.MessageID.Localize(), delegateType);
FlowAnalysis\NullableWalker.cs (1)
10360
ReportNullabilityMismatchWithTargetDelegate(((LambdaSymbol)lambda.Symbol).
DiagnosticLocation
, delegateType, lambda);
Symbols\Source\LambdaSymbol.cs (2)
300
AsyncMethodChecks(verifyReturnType: HasExplicitReturnType,
DiagnosticLocation
, diagnostics);
303
addTo.Add(ErrorCode.ERR_BuilderAttributeDisallowed,
DiagnosticLocation
);