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

Unified Diff: dart/frog/leg/elements/elements.dart

Issue 9309061: Implement script tags. (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
Index: dart/frog/leg/elements/elements.dart
diff --git a/dart/frog/leg/elements/elements.dart b/dart/frog/leg/elements/elements.dart
index 5193a3b9272a76e1bfb69032d8841b90c84f2b10..2ff66099d31aeb8c91c719f5e49a3f273ff2c3af 100644
--- a/dart/frog/leg/elements/elements.dart
+++ b/dart/frog/leg/elements/elements.dart
@@ -32,6 +32,7 @@ class ElementKind {
static final ElementKind SETTER = const ElementKind('setter');
static final ElementKind ABSTRACT_FIELD = const ElementKind('abstract_field');
static final ElementKind LIBRARY = const ElementKind('library');
+ static final ElementKind PREFIX = const ElementKind('prefix');
toString() => id;
}
@@ -177,6 +178,17 @@ class LibraryElement extends CompilationUnitElement {
}
}
+class PrefixElement extends Element {
+ final LiteralString prefix;
+ final LibraryElement library;
+
+ PrefixElement(LiteralString prefix,
+ LibraryElement this.library,
+ Element enclosing)
+ : this.prefix = prefix,
+ super(prefix.dartString.source, ElementKind.PREFIX, enclosing);
+}
+
class VariableElement extends Element {
final VariableListElement variables;
Expression cachedNode; // The send or the identifier in the variables list.

Powered by Google App Engine
This is Rietveld 408576698