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

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

Issue 561233005: Add ElementX.declarationSite. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r40311. Created 6 years, 3 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/scanner/listener.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/scanner/listener.dart b/dart/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
index 6fa7cc280edec3005149cc23e824922cb5ab73e7..865fbdcfd91edf72c4845b200f772653c7c5c6eb 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
@@ -2170,13 +2170,15 @@ class NodeListener extends ElementListener {
}
}
-abstract class PartialElement {
+abstract class PartialElement implements DeclarationSite {
Token beginToken;
Token endToken;
bool hasParseError = false;
bool get isErroneous => hasParseError;
+
+ DeclarationSite get declarationSite => this;
}
abstract class PartialFunctionMixin implements FunctionElement {

Powered by Google App Engine
This is Rietveld 408576698