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

Unified Diff: pkg/compiler/lib/src/elements/elements.dart

Issue 898113002: Add sharedfrontend package (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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: pkg/compiler/lib/src/elements/elements.dart
diff --git a/pkg/compiler/lib/src/elements/elements.dart b/pkg/compiler/lib/src/elements/elements.dart
index b7c4bba0be70be1e5a5b62d0e714ed6e4ea09650..7895868812bf2c96e2af2969e174b67e018b6e74 100644
--- a/pkg/compiler/lib/src/elements/elements.dart
+++ b/pkg/compiler/lib/src/elements/elements.dart
@@ -2,8 +2,9 @@
// 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.
-library elements;
+library dart2js.elements;
+import 'package:sharedfrontend/elements.dart' as shared;
import '../constants/expressions.dart';
import '../tree/tree.dart';
@@ -182,7 +183,7 @@ abstract class Entity implements Spannable {
* is best if the backends avoid setting state directly in elements.
* It is better to keep such state in a table on the side.
*/
-abstract class Element implements Entity {
+abstract class Element implements shared.Element, Entity {
String get name;
ElementKind get kind;
Element get enclosingElement;
@@ -847,7 +848,7 @@ abstract class CompilationUnitElement extends Element {
}
abstract class LibraryElement extends Element
- implements ScopeContainerElement, AnalyzableElement {
+ implements ScopeContainerElement, AnalyzableElement, shared.LibraryElement {
/**
* The canonical uri for this library.
*
@@ -1303,7 +1304,7 @@ abstract class TypeDeclarationElement extends Element implements AstElement {
}
abstract class ClassElement extends TypeDeclarationElement
- implements ScopeContainerElement {
+ implements ScopeContainerElement, shared.ClassElement {
int get id;
/// The length of the longest inheritance path from [:Object:].

Powered by Google App Engine
This is Rietveld 408576698