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

Unified Diff: dart/frog/leg/scanner/listener.dart

Issue 9107010: Generate elements for interfaces and supertypes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 11 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
« no previous file with comments | « no previous file | dart/tests/language/language-leg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/scanner/listener.dart
diff --git a/dart/frog/leg/scanner/listener.dart b/dart/frog/leg/scanner/listener.dart
index c5fca0377678016a69e3eca43621f79ba179cba1..dd4f7c0a28f4d99185dc5a6af65bc5229ecea780 100644
--- a/dart/frog/leg/scanner/listener.dart
+++ b/dart/frog/leg/scanner/listener.dart
@@ -470,9 +470,6 @@ class ElementListener extends Listener {
Token endToken) {
NodeList interfaces =
makeNodeList(interfacesCount, implementsKeyword, null, ",");
- if (interfacesCount !== 0) {
- canceler.cancel('interfaces are not implemented', node: interfaces);
- }
TypeAnnotation supertype = popNode();
Identifier name = popNode();
pushElement(new PartialClassElement(
@@ -490,7 +487,12 @@ class ElementListener extends Listener {
void endInterface(int supertypeCount, Token interfaceKeyword,
Token extendsKeyword, Token endToken) {
- canceler.cancel("interfaces are not implemented", token: interfaceKeyword);
+ Node defaultClause = popNode();
+ NodeList supertypes =
+ makeNodeList(supertypeCount, extendsKeyword, null, ",");
+ Identifier name = popNode();
+ pushElement(new PartialClassElement(
+ name.source, interfaceKeyword, endToken, compilationUnitElement));
}
void endFunctionTypeAlias(Token typedefKeyword, Token endToken) {
« no previous file with comments | « no previous file | dart/tests/language/language-leg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698