Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Unified Diff: sdk/lib/_internal/compiler/implementation/tree/nodes.dart

Issue 11412147: Fix a type annotation in the parser to make it accept non-literal strings as part URIs in checked m… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Also fix import and add a test. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/scanner/listener.dart ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/tree/nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/tree/nodes.dart b/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
index d8e54734afa1bc4e9fce29f84d79340878286a67..6515a324fb8fb25aa130c2a00c0ea64607cc0578 100644
--- a/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
@@ -1684,7 +1684,7 @@ class LibraryName extends LibraryTag {
* Combinators filter away some identifiers from the other library.
*/
abstract class LibraryDependency extends LibraryTag {
- final LiteralString uri;
+ final StringNode uri;
final NodeList combinators;
LibraryDependency(this.uri, this.combinators);
@@ -1701,7 +1701,7 @@ class Import extends LibraryDependency {
final Identifier prefix;
final Token importKeyword;
- Import(this.importKeyword, LiteralString uri,
+ Import(this.importKeyword, StringNode uri,
this.prefix, NodeList combinators)
: super(uri, combinators);
@@ -1761,7 +1761,7 @@ class Export extends LibraryDependency {
}
class Part extends LibraryTag {
- final LiteralString uri;
+ final StringNode uri;
final Token partKeyword;
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/scanner/listener.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698