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

Unified Diff: pkg/compiler/lib/src/parser/element_listener.dart

Issue 1517013003: Revert "dart2js: add support for configuration-specific imports." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 | « pkg/compiler/lib/src/parser/diet_parser_task.dart ('k') | pkg/compiler/lib/src/parser/listener.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/parser/element_listener.dart
diff --git a/pkg/compiler/lib/src/parser/element_listener.dart b/pkg/compiler/lib/src/parser/element_listener.dart
index fb5314ef8dc8181f0f8a68b595749b786e09b431..0cdf72ed1dd720c6c44d70f65d949e73449ad4de 100644
--- a/pkg/compiler/lib/src/parser/element_listener.dart
+++ b/pkg/compiler/lib/src/parser/element_listener.dart
@@ -150,34 +150,12 @@ class ElementListener extends Listener {
if (asKeyword != null) {
prefix = popNode();
}
- NodeList conditionalUris = popNode();
StringNode uri = popLiteralString();
- addLibraryTag(new Import(importKeyword, uri, conditionalUris,
- prefix, combinators,
+ addLibraryTag(new Import(importKeyword, uri, prefix, combinators,
popMetadata(compilationUnitElement),
isDeferred: isDeferred));
}
- void endDottedName(int count, Token token) {
- NodeList identifiers = makeNodeList(count, null, null, '.');
- pushNode(new DottedName(token, identifiers));
- }
-
- void endConditionalUris(int count) {
- if (count == 0) {
- pushNode(null);
- } else {
- pushNode(makeNodeList(count, null, null, " "));
- }
- }
-
- void endConditionalUri(Token ifToken, Token equalSign) {
- StringNode uri = popNode();
- LiteralString conditionValue = (equalSign != null) ? popNode() : null;
- DottedName identifier = popNode();
- pushNode(new ConditionalUri(ifToken, identifier, conditionValue, uri));
- }
-
void endEnum(Token enumKeyword, Token endBrace, int count) {
NodeList names = makeNodeList(count, enumKeyword.next.next, endBrace, ",");
Identifier name = popNode();
@@ -191,9 +169,8 @@ class ElementListener extends Listener {
void endExport(Token exportKeyword, Token semicolon) {
NodeList combinators = popNode();
- NodeList conditionalUris = popNode();
StringNode uri = popNode();
- addLibraryTag(new Export(exportKeyword, uri, conditionalUris, combinators,
+ addLibraryTag(new Export(exportKeyword, uri, combinators,
popMetadata(compilationUnitElement)));
}
« no previous file with comments | « pkg/compiler/lib/src/parser/diet_parser_task.dart ('k') | pkg/compiler/lib/src/parser/listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698