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

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

Issue 266913017: Convert property methods into getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 6 years, 7 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: sdk/lib/_internal/compiler/implementation/scanner/class_element_parser.dart
diff --git a/sdk/lib/_internal/compiler/implementation/scanner/class_element_parser.dart b/sdk/lib/_internal/compiler/implementation/scanner/class_element_parser.dart
index 7e6a81bc254165d14ec270d58772dae5dc252bd6..f9cf573bf84f4ffb7e702b77aec7082158588497 100644
--- a/sdk/lib/_internal/compiler/implementation/scanner/class_element_parser.dart
+++ b/sdk/lib/_internal/compiler/implementation/scanner/class_element_parser.dart
@@ -57,7 +57,7 @@ class PartialClassElement extends ClassElementX {
return cachedNode;
}
- Token position() => beginToken;
+ Token get position => beginToken;
// TODO(johnniwinther): Ensure that modifiers are always available.
Modifiers get modifiers =>
@@ -72,7 +72,7 @@ class MemberListener extends NodeListener {
MemberListener(DiagnosticListener listener,
Element enclosingElement)
: this.enclosingElement = enclosingElement,
- super(listener, enclosingElement.getCompilationUnit());
+ super(listener, enclosingElement.compilationUnit);
bool isConstructorName(Node nameNode) {
if (enclosingElement == null ||

Powered by Google App Engine
This is Rietveld 408576698