Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library engine.resolver; | 5 library engine.resolver; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'ast.dart'; | 9 import 'ast.dart'; |
| 10 import 'constant.dart'; | 10 import 'constant.dart'; |
| (...skipping 9653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 9664 @override | 9664 @override |
| 9665 Object visitExpressionFunctionBody(ExpressionFunctionBody node) { | 9665 Object visitExpressionFunctionBody(ExpressionFunctionBody node) { |
| 9666 if (_shouldBeSkipped(node)) { | 9666 if (_shouldBeSkipped(node)) { |
| 9667 return null; | 9667 return null; |
| 9668 } | 9668 } |
| 9669 return super.visitExpressionFunctionBody(node); | 9669 return super.visitExpressionFunctionBody(node); |
| 9670 } | 9670 } |
| 9671 | 9671 |
| 9672 @override | 9672 @override |
| 9673 Object visitFieldDeclaration(FieldDeclaration node) { | 9673 Object visitFieldDeclaration(FieldDeclaration node) { |
| 9674 if (strongMode && node.isStatic) { | 9674 if (strongMode) { |
| 9675 _addStaticVariables(node.fields.variables); | 9675 _addStaticVariables(node.fields.variables); |
|
Brian Wilkerson
2015/09/25 20:50:17
nit: we should change the name _addStaticVariables
Leaf
2015/09/26 00:09:33
Done.
| |
| 9676 bool wasDiscarding = discardErrorsInInitializer; | 9676 bool wasDiscarding = discardErrorsInInitializer; |
| 9677 discardErrorsInInitializer = true; | 9677 discardErrorsInInitializer = true; |
| 9678 try { | 9678 try { |
| 9679 return super.visitFieldDeclaration(node); | 9679 return super.visitFieldDeclaration(node); |
| 9680 } finally { | 9680 } finally { |
| 9681 discardErrorsInInitializer = wasDiscarding; | 9681 discardErrorsInInitializer = wasDiscarding; |
| 9682 } | 9682 } |
| 9683 } | 9683 } |
| 9684 return super.visitFieldDeclaration(node); | 9684 return super.visitFieldDeclaration(node); |
| 9685 } | 9685 } |
| (...skipping 6269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 15955 nonFields.add(node); | 15955 nonFields.add(node); |
| 15956 return null; | 15956 return null; |
| 15957 } | 15957 } |
| 15958 | 15958 |
| 15959 @override | 15959 @override |
| 15960 Object visitNode(AstNode node) => node.accept(TypeResolverVisitor_this); | 15960 Object visitNode(AstNode node) => node.accept(TypeResolverVisitor_this); |
| 15961 | 15961 |
| 15962 @override | 15962 @override |
| 15963 Object visitWithClause(WithClause node) => null; | 15963 Object visitWithClause(WithClause node) => null; |
| 15964 } | 15964 } |
| OLD | NEW |