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

Unified Diff: sdk/lib/_internal/compiler/implementation/scanner/listener.dart

Issue 14907008: Remove support for interface in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 7 years, 7 months 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
Index: sdk/lib/_internal/compiler/implementation/scanner/listener.dart
diff --git a/sdk/lib/_internal/compiler/implementation/scanner/listener.dart b/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
index 6e83386f98016320817b5dae181d5a5407ea3bc1..5c3243acebb7c5c6a3f3b731b4e7d379b67f67bc 100644
--- a/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
+++ b/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
@@ -87,15 +87,6 @@ class Listener {
void endExpressionStatement(Token token) {
}
- void beginDefaultClause(Token token) {
- }
-
- void handleNoDefaultClause(Token token) {
- }
-
- void endDefaultClause(Token defaultKeyword) {
- }
-
void beginFactoryMethod(Token token) {
}
@@ -228,13 +219,6 @@ class Listener {
void handleNoInitializers() {
}
- void beginInterface(Token token) {
- }
-
- void endInterface(int supertypeCount, Token interfaceKeyword,
- Token extendsKeyword, Token endToken) {
- }
-
void handleLabel(Token token) {
}
@@ -813,31 +797,6 @@ class ElementListener extends Listener {
}
}
- void endDefaultClause(Token defaultKeyword) {
- NodeList typeParameters = popNode();
- Node name = popNode();
- pushNode(new TypeAnnotation(name, typeParameters));
- }
-
- void handleNoDefaultClause(Token token) {
- pushNode(null);
- }
-
- void endInterface(int supertypeCount, Token interfaceKeyword,
- Token extendsKeyword, Token endToken) {
- // TODO(ahe): Record the defaultClause.
- Node defaultClause = popNode();
- NodeList supertypes =
- makeNodeList(supertypeCount, extendsKeyword, null, ",");
- NodeList typeParameters = popNode();
- Identifier name = popNode();
- int id = idGenerator();
- pushElement(new PartialClassElement(
- name.source, interfaceKeyword, endToken, compilationUnitElement, id));
- rejectBuiltInIdentifier(name);
- listener.onDeprecatedFeature(interfaceKeyword, 'interface declarations');
- }
-
void endFunctionTypeAlias(Token typedefKeyword, Token endToken) {
NodeList typeVariables = popNode(); // TOOD(karlklose): do not throw away.
Identifier name = popNode();
@@ -1228,7 +1187,7 @@ class NodeListener extends ElementListener {
Identifier name = popNode();
Modifiers modifiers = popNode();
pushNode(new ClassNode(modifiers, name, typeParameters, supertype,
- interfaces, null, beginToken, extendsKeyword, body,
+ interfaces, beginToken, extendsKeyword, body,
endToken));
}
@@ -1259,19 +1218,6 @@ class NodeListener extends ElementListener {
typedefKeyword, endToken));
}
- void endInterface(int supertypeCount, Token interfaceKeyword,
- Token extendsKeyword, Token endToken) {
- NodeList body = popNode();
- TypeAnnotation defaultClause = popNode();
- NodeList supertypes = makeNodeList(supertypeCount, extendsKeyword,
- null, ',');
- NodeList typeParameters = popNode();
- Identifier name = popNode();
- pushNode(new ClassNode(Modifiers.EMPTY, name, typeParameters, null,
- supertypes, defaultClause, interfaceKeyword, null,
- body, endToken));
- }
-
void endClassBody(int memberCount, Token beginToken, Token endToken) {
pushNode(makeNodeList(memberCount, beginToken, endToken, null));
}

Powered by Google App Engine
This is Rietveld 408576698