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

Unified Diff: lib/src/codegen/js_codegen.dart

Issue 1056183003: use VariableElement instead of VariableElementImpl in _isStateless (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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 | test/codegen/cascade.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/codegen/js_codegen.dart
diff --git a/lib/src/codegen/js_codegen.dart b/lib/src/codegen/js_codegen.dart
index 276fa620f2dec7daff5669589b421c9845083e80..8377913cf1938d853e8cf556953e8f5c2dd86906 100644
--- a/lib/src/codegen/js_codegen.dart
+++ b/lib/src/codegen/js_codegen.dart
@@ -1697,7 +1697,7 @@ class JSCodegenVisitor extends GeneralizingAstVisitor with ConversionVisitor {
if (node is SimpleIdentifier) {
var e = node.staticElement;
if (e is PropertyAccessorElement) e = e.variable;
- if (e is VariableElementImpl && !e.isSynthetic) {
+ if (e is VariableElement && !e.isSynthetic) {
Brian Wilkerson 2015/04/04 15:58:24 This is a good first step, but doesn't fix the pro
Jennifer Messerly 2015/04/06 15:19:22 Sounds good, but how can I get a ParameterMember h
Brian Wilkerson 2015/04/06 15:23:05 I don't think you can. My comment was based on a m
Jennifer Messerly 2015/04/06 15:46:31 Ah that's good. I think I still like your variatio
if (e.isFinal) return true;
if (e is LocalVariableElementImpl || e is ParameterElementImpl) {
// make sure the local isn't mutated in the context.
« no previous file with comments | « no previous file | test/codegen/cascade.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698