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

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

Issue 11033016: Added TODO. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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
« no previous file with comments | « no previous file | lib/compiler/implementation/constant_system_dart.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/compiler.dart
diff --git a/lib/compiler/implementation/compiler.dart b/lib/compiler/implementation/compiler.dart
index 39ca6fe83e74ad3e26b2268ea1579667d0d5622b..f2dbc25ef8caac3b115b7b26f9ee79801749a098 100644
--- a/lib/compiler/implementation/compiler.dart
+++ b/lib/compiler/implementation/compiler.dart
@@ -841,8 +841,11 @@ class Compiler implements DiagnosticListener {
// TODO(ager,johnniwinther): The patch support should be
// reworked to allow us to get rid of this.
if (element.isPatched) {
- position = element.patch.position();
- uri = element.patch.getCompilationUnit().script.uri;
+ // TODO(johnniwinther,karlklose): create a subtype of Element for
+ // patchable elements or move the patch field to Element.
+ var patched = element;
+ position = patched.patch.position();
+ uri = patched.patch.getCompilationUnit().script.uri;
}
return (position === null)
« no previous file with comments | « no previous file | lib/compiler/implementation/constant_system_dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698