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

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

Issue 11092003: Implement part-of directive. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update co19 status for dart2dart Created 8 years, 2 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: dart/lib/compiler/implementation/tree/nodes.dart
diff --git a/dart/lib/compiler/implementation/tree/nodes.dart b/dart/lib/compiler/implementation/tree/nodes.dart
index 9897e2a53ecd4ec7e3ed28ff7c87e79836998c5f..5fcd0eadcd7cd09d3b79318adc5105c1a4113e26 100644
--- a/dart/lib/compiler/implementation/tree/nodes.dart
+++ b/dart/lib/compiler/implementation/tree/nodes.dart
@@ -54,7 +54,7 @@ abstract class Visitor<R> {
return visitExpression(node);
}
R visitPart(Part node) => visitLibraryTag(node);
- R visitPartOf(PartOf node) => visitLibraryTag(node);
+ R visitPartOf(PartOf node) => visitNode(node);
R visitPostfix(Postfix node) => visitNodeList(node);
R visitPrefix(Prefix node) => visitNodeList(node);
R visitReturn(Return node) => visitStatement(node);
@@ -1759,7 +1759,7 @@ class Part extends LibraryTag {
Token getEndToken() => uri.getEndToken().next;
}
-class PartOf extends LibraryTag {
+class PartOf extends Node {
final Expression name;
final Token partKeyword;

Powered by Google App Engine
This is Rietveld 408576698