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

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

Issue 11415065: Issue 6770. Support for @deprecated on library directive. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 ad1a9ecac3d647fa2f21ae7eb8844b723ce7a050..7c039c1d51f4aa325a82161c317f14d67cbcc304 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartDirective.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartDirective.java
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -9,9 +9,19 @@ import com.google.dart.compiler.resolver.NodeElement;
/**
* Base class for directives.
*/
-public abstract class DartDirective extends DartNodeWithMetadata {
+public abstract class DartDirective extends DartNodeWithMetadata implements HasObsoleteMetadata {
+ private DartObsoleteMetadata obsoleteMetadata = DartObsoleteMetadata.EMPTY;
+
@Override
public NodeElement getElement() {
throw new UnsupportedOperationException(getClass().getSimpleName());
}
+
+ public DartObsoleteMetadata getObsoleteMetadata() {
+ return obsoleteMetadata;
+ }
+
+ public void setObsoleteMetadata(DartObsoleteMetadata metadata) {
+ this.obsoleteMetadata = metadata;
+ }
}

Powered by Google App Engine
This is Rietveld 408576698