| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 class ClosureFieldElement extends Element { | 5 class ClosureFieldElement extends Element { |
| 6 ClosureFieldElement(SourceString name, ClassElement enclosing) | 6 ClosureFieldElement(SourceString name, ClassElement enclosing) |
| 7 : super(name, ElementKind.FIELD, enclosing); | 7 : super(name, ElementKind.FIELD, enclosing); |
| 8 | 8 |
| 9 bool isInstanceMember() => true; | 9 bool isInstanceMember() => true; |
| 10 bool isAssignable() => false; | 10 bool isAssignable() => false; |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 declareLocal(elements[node]); | 405 declareLocal(elements[node]); |
| 406 } | 406 } |
| 407 | 407 |
| 408 visitTryStatement(TryStatement node) { | 408 visitTryStatement(TryStatement node) { |
| 409 // TODO(ngeoffray): implement finer grain state. | 409 // TODO(ngeoffray): implement finer grain state. |
| 410 inTryCatchOrFinally = true; | 410 inTryCatchOrFinally = true; |
| 411 node.visitChildren(this); | 411 node.visitChildren(this); |
| 412 inTryCatchOrFinally = false; | 412 inTryCatchOrFinally = false; |
| 413 } | 413 } |
| 414 | 414 |
| 415 visitLiteralMap(LiteralMap node) { | |
| 416 // TODO(ahe): Remove this method. | |
| 417 } | |
| 418 | |
| 419 visitSwitchStatement(SwitchStatement node) { | 415 visitSwitchStatement(SwitchStatement node) { |
| 420 // TODO(ahe): Remove this method. | 416 // TODO(ahe): Remove this method. |
| 421 } | 417 } |
| 422 } | 418 } |
| OLD | NEW |