9 references to DiagnosticLocation
Microsoft.CodeAnalysis.CSharp (9)
BoundTree\UnboundLambda.cs (5)
820
compilation.EnsureIsReadOnlyAttributeExists(diagnostics, lambdaSymbol.
DiagnosticLocation
, modifyCompilation: false);
831
compilation.EnsureNativeIntegerAttributeExists(diagnostics, lambdaSymbol.
DiagnosticLocation
, modifyCompilation: false);
837
compilation.EnsureNullableAttributeExists(diagnostics, lambdaSymbol.
DiagnosticLocation
, modifyCompilation: false);
855
diagnostics.Add(ErrorCode.ERR_AnonymousReturnExpected, lambdaSymbol.
DiagnosticLocation
, this.MessageID.Localize(), delegateType);
871
diagnostics.Add(ErrorCode.ERR_CantConvAsyncAnonFuncReturns, lambdaSymbol.
DiagnosticLocation
, lambdaSymbol.MessageID.Localize(), delegateType);
FlowAnalysis\DefiniteAssignment.cs (1)
409
? lambda.
DiagnosticLocation
FlowAnalysis\NullableWalker.cs (1)
9776
ReportNullabilityMismatchWithTargetDelegate(lambda.Symbol.
DiagnosticLocation
, delegateType, lambda);
Symbols\Source\LambdaSymbol.cs (2)
294
AsyncMethodChecks(verifyReturnType: HasExplicitReturnType,
DiagnosticLocation
, diagnostics);
297
addTo.Add(ErrorCode.ERR_BuilderAttributeDisallowed,
DiagnosticLocation
);