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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_backend/dart_codegen.dart

Issue 392873002: Element-model refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 5 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/dart_backend/dart_codegen.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/dart_codegen.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/dart_codegen.dart
index 9d02580f7bb04fbb4aca6fe591411f5f1767e9e1..3ba7fa0f6500730f8fc724a3d6f329a1e524e64c 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/dart_codegen.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/dart_codegen.dart
@@ -289,9 +289,9 @@ class ASTEmitter extends tree.Visitor<dynamic, Expression> {
// Synthesize an element for the variable
if (variable.element == null || name != variable.element.name) {
- variable.element = new modelx.VariableElementX(
+ // TODO(johnniwinther): Replace by synthetic [Entity].
+ variable.element = new modelx.LocalVariableElementX(
name,
- ElementKind.VARIABLE,
functionElement,
variableList,
null);

Powered by Google App Engine
This is Rietveld 408576698