-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CFE] Change error message on package uri error
Bug: #59606 Change-Id: Id2737637f5074bc7ab4a1647fabe64a95a949218 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/397760 Reviewed-by: Johnni Winther <[email protected]> Commit-Queue: Jens Johansen <[email protected]>
- Loading branch information
Showing
8 changed files
with
100 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import 'package:foobar1' as a; | ||
import 'package:foobar%32' as b; |
25 changes: 25 additions & 0 deletions
25
pkg/front_end/testcases/regress/issue_59606.dart.strong.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// Problems outside component: | ||
// | ||
// Error: Invalid package URI 'package:foobar1': | ||
// Package URIs must start with the package name followed by a '/'. | ||
// | ||
// Error: Invalid package URI 'package:foobar2': | ||
// Package URIs must start with the package name followed by a '/'. | ||
// | ||
library; | ||
// | ||
// Problems in library: | ||
// | ||
// pkg/front_end/testcases/regress/issue_59606.dart:1:8: Error: Not found: 'package:foobar1' | ||
// import 'package:foobar1' as a; | ||
// ^ | ||
// | ||
// pkg/front_end/testcases/regress/issue_59606.dart:2:8: Error: Not found: 'package:foobar2' | ||
// import 'package:foobar%32' as b; | ||
// ^ | ||
// | ||
import self as self; | ||
|
||
import "package:foobar1" as a; | ||
import "package:foobar2" as b; |
25 changes: 25 additions & 0 deletions
25
pkg/front_end/testcases/regress/issue_59606.dart.strong.modular.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// Problems outside component: | ||
// | ||
// Error: Invalid package URI 'package:foobar1': | ||
// Package URIs must start with the package name followed by a '/'. | ||
// | ||
// Error: Invalid package URI 'package:foobar2': | ||
// Package URIs must start with the package name followed by a '/'. | ||
// | ||
library; | ||
// | ||
// Problems in library: | ||
// | ||
// pkg/front_end/testcases/regress/issue_59606.dart:1:8: Error: Not found: 'package:foobar1' | ||
// import 'package:foobar1' as a; | ||
// ^ | ||
// | ||
// pkg/front_end/testcases/regress/issue_59606.dart:2:8: Error: Not found: 'package:foobar2' | ||
// import 'package:foobar%32' as b; | ||
// ^ | ||
// | ||
import self as self; | ||
|
||
import "package:foobar1" as a; | ||
import "package:foobar2" as b; |
25 changes: 25 additions & 0 deletions
25
pkg/front_end/testcases/regress/issue_59606.dart.strong.outline.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// Problems outside component: | ||
// | ||
// Error: Invalid package URI 'package:foobar1': | ||
// Package URIs must start with the package name followed by a '/'. | ||
// | ||
// Error: Invalid package URI 'package:foobar2': | ||
// Package URIs must start with the package name followed by a '/'. | ||
// | ||
library; | ||
// | ||
// Problems in library: | ||
// | ||
// pkg/front_end/testcases/regress/issue_59606.dart:1:8: Error: Not found: 'package:foobar1' | ||
// import 'package:foobar1' as a; | ||
// ^ | ||
// | ||
// pkg/front_end/testcases/regress/issue_59606.dart:2:8: Error: Not found: 'package:foobar2' | ||
// import 'package:foobar%32' as b; | ||
// ^ | ||
// | ||
import self as self; | ||
|
||
import "package:foobar1" as a; | ||
import "package:foobar2" as b; |
16 changes: 16 additions & 0 deletions
16
pkg/front_end/testcases/regress/issue_59606.dart.strong.transformed.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
library; | ||
// | ||
// Problems in library: | ||
// | ||
// pkg/front_end/testcases/regress/issue_59606.dart:1:8: Error: Not found: 'package:foobar1' | ||
// import 'package:foobar1' as a; | ||
// ^ | ||
// | ||
// pkg/front_end/testcases/regress/issue_59606.dart:2:8: Error: Not found: 'package:foobar2' | ||
// import 'package:foobar%32' as b; | ||
// ^ | ||
// | ||
import self as self; | ||
|
||
import "package:foobar1" as a; | ||
import "package:foobar2" as b; |
3 changes: 3 additions & 0 deletions
3
pkg/front_end/testcases/regress/issue_59606.dart.textual_outline.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import 'package:foobar1' as a; | ||
|
||
import 'package:foobar%32' as b; |
2 changes: 2 additions & 0 deletions
2
pkg/front_end/testcases/regress/issue_59606.dart.textual_outline_modelled.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import 'package:foobar%32' as b; | ||
import 'package:foobar1' as a; |