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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart

Issue 12033003: Deferred (aka lazy) loading of static functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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: dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart b/dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
index 9875b254ada47a304e593c6a2ae888ac3e16d92a..37bf6253330624f75ce6dcd2882157726b383658 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
@@ -1715,6 +1715,10 @@ class ScriptTag extends Node {
}
abstract class LibraryTag extends Node {
+ final Link<MetadataAnnotation> metadata;
+
+ LibraryTag(this.metadata);
+
bool get isLibraryName => false;
bool get isImport => false;
bool get isExport => false;
@@ -1727,7 +1731,10 @@ class LibraryName extends LibraryTag {
final Token libraryKeyword;
- LibraryName(this.libraryKeyword, this.name);
+ LibraryName(this.libraryKeyword,
+ this.name,
+ Link<MetadataAnnotation> metadata)
+ : super(metadata);
bool get isLibraryName => true;
@@ -1751,7 +1758,10 @@ abstract class LibraryDependency extends LibraryTag {
final StringNode uri;
final NodeList combinators;
- LibraryDependency(this.uri, this.combinators);
+ LibraryDependency(this.uri,
+ this.combinators,
+ Link<MetadataAnnotation> metadata)
+ : super(metadata);
}
/**
@@ -1766,8 +1776,9 @@ class Import extends LibraryDependency {
final Token importKeyword;
Import(this.importKeyword, StringNode uri,
- this.prefix, NodeList combinators)
- : super(uri, combinators);
+ this.prefix, NodeList combinators,
+ Link<MetadataAnnotation> metadata)
+ : super(uri, combinators, metadata);
bool get isImport => true;
@@ -1829,7 +1840,8 @@ class Part extends LibraryTag {
final Token partKeyword;
- Part(this.partKeyword, this.uri);
+ Part(this.partKeyword, this.uri, Link<MetadataAnnotation> metadata)
+ : super(metadata);
bool get isPart => true;
@@ -1849,7 +1861,9 @@ class PartOf extends Node {
final Token partKeyword;
- PartOf(this.partKeyword, this.name);
+ final Link<MetadataAnnotation> metadata;
+
+ PartOf(this.partKeyword, this.name, this.metadata);
Token get ofKeyword => partKeyword.next;

Powered by Google App Engine
This is Rietveld 408576698