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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartDirective.java

Issue 9703096: Remove Element.getNode() method (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changes for review comments Created 8 years, 9 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: compiler/java/com/google/dart/compiler/ast/DartDirective.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartDirective.java b/compiler/java/com/google/dart/compiler/ast/DartDirective.java
index 3a1fe7e01223870d02521cb7d29e799a7032bfdf..0d3ae6d23bb7c0eb2ce10cc7cbad6f62794ab815 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartDirective.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartDirective.java
@@ -4,8 +4,14 @@
package com.google.dart.compiler.ast;
+import com.google.dart.compiler.resolver.NodeElement;
+
/**
* Base class for directives.
*/
public abstract class DartDirective extends DartNode {
+ @Override
+ public NodeElement getElement() {
+ throw new UnsupportedOperationException(getClass().getSimpleName());
+ }
}

Powered by Google App Engine
This is Rietveld 408576698