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

Unified Diff: dart/lib/compiler/implementation/scanner/listener.dart

Issue 10879006: Create an outline of metadata API in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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/lib/compiler/implementation/scanner/listener.dart
diff --git a/dart/lib/compiler/implementation/scanner/listener.dart b/dart/lib/compiler/implementation/scanner/listener.dart
index 323fbb745a4dc8a122a8fbbbcce9bd363720867e..e56695003d052dd5676e957f771a87408f6164e5 100644
--- a/dart/lib/compiler/implementation/scanner/listener.dart
+++ b/dart/lib/compiler/implementation/scanner/listener.dart
@@ -1628,6 +1628,17 @@ class PartialTypedefElement extends TypedefElement {
}
}
+/// A [MetadataAnnotation] which is constructed on demand.
+class PartialMetadataAnnotation extends MetadataAnnotation {
+ final Token beginToken;
+ Expression cachedNode;
+ Constant value;
+
+ PartialMetadataAnnotation(this.value);
+
+ // TODO(ahe): Add more functionality as needed.
+}
+
Node parse(DiagnosticListener diagnosticListener,
CompilationUnitElement element,
doParse(Parser parser)) {
« no previous file with comments | « dart/lib/compiler/implementation/patch_parser.dart ('k') | dart/tests/compiler/dart2js/compiler_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698