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