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

Unified Diff: lib/compiler/implementation/elements/elements.dart

Issue 10697084: Recognize "patch" identifier in .dartp files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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: lib/compiler/implementation/elements/elements.dart
diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart
index ad690789f5fbb8c414a1ab6995d0c5cfe0b77fdc..d754f838d80723628769cccf6b7c726eca0a08c0 100644
--- a/lib/compiler/implementation/elements/elements.dart
+++ b/lib/compiler/implementation/elements/elements.dart
@@ -102,6 +102,7 @@ class Element implements Hashable {
final SourceString name;
final ElementKind kind;
final Element enclosingElement;
+ Link<Node> metadata = const EmptyLink<Node>();
Modifiers get modifiers() => null;
Node parseNode(DiagnosticListener listener) {
@@ -112,6 +113,10 @@ class Element implements Hashable {
compiler.internalError("$this.computeType.", token: position());
}
+ void addMetadata(Node node) {
+ metadata = metadata.prepend(node);
+ }
+
bool isFunction() => kind === ElementKind.FUNCTION;
bool isMember() =>
enclosingElement !== null && enclosingElement.kind === ElementKind.CLASS;

Powered by Google App Engine
This is Rietveld 408576698