Chromium Code Reviews| 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. |