Skip to content

Commit 4c1a153

Browse files
Dmitry Stefantsovcommit-bot@chromium.org
authored andcommitted
[cfe] Don't show context on type argument issues if location is null
Closes #84212. Bug: flutter/flutter#84212 Change-Id: I4138b65988947396c619a4a4fa5044aac63531cf Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/203503 Reviewed-by: Johnni Winther <[email protected]> Commit-Queue: Dmitry Stefantsov <[email protected]>
1 parent 65bca53 commit 4c1a153

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/front_end/lib/src/fasta/source/source_library_builder.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3577,7 +3577,7 @@ class SourceLibraryBuilder extends LibraryBuilderImpl {
35773577
// limitation of Kernel.
35783578
if (typeParameter != null &&
35793579
typeParameter.fileOffset != -1 &&
3580-
typeParameter.parent != null) {
3580+
typeParameter.location != null) {
35813581
// It looks like when parameters come from patch files, they don't
35823582
// have a reportable location.
35833583
(context ??= <LocatedMessage>[]).add(

0 commit comments

Comments
 (0)