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

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

Issue 10834330: Clean-up of getCompilationUnit. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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
« no previous file with comments | « no previous file | lib/compiler/implementation/elements/elements.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/dart_backend/emitter.dart
diff --git a/lib/compiler/implementation/dart_backend/emitter.dart b/lib/compiler/implementation/dart_backend/emitter.dart
index 19197d1a688ada5fef2d1330a85d3a1d77011895..dfb85c322917d49b11b5efe64dc77ffc10d02d9d 100644
--- a/lib/compiler/implementation/dart_backend/emitter.dart
+++ b/lib/compiler/implementation/dart_backend/emitter.dart
@@ -66,7 +66,8 @@ class Emitter {
// Different VariableElement's may refer to the same VariableListElement.
// Output this list only once.
// TODO: only emit used variables.
- final variableList = (element as VariableElement).variables;
+ VariableElement variableElement = element;
+ final variableList = variableElement.variables;
if (!processedVariableLists.contains(variableList)) {
processedVariableLists.add(variableList);
sb.add(unparser.unparse(variableList.parseNode(compiler)));
« no previous file with comments | « no previous file | lib/compiler/implementation/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698