| 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 9639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9650 @override | 9650 @override |
| 9651 Object visitExpressionFunctionBody(ExpressionFunctionBody node) { | 9651 Object visitExpressionFunctionBody(ExpressionFunctionBody node) { |
| 9652 if (_shouldBeSkipped(node)) { | 9652 if (_shouldBeSkipped(node)) { |
| 9653 return null; | 9653 return null; |
| 9654 } | 9654 } |
| 9655 return super.visitExpressionFunctionBody(node); | 9655 return super.visitExpressionFunctionBody(node); |
| 9656 } | 9656 } |
| 9657 | 9657 |
| 9658 @override | 9658 @override |
| 9659 Object visitFieldDeclaration(FieldDeclaration node) { | 9659 Object visitFieldDeclaration(FieldDeclaration node) { |
| 9660 if (strongMode) { | 9660 if (strongMode && node.isStatic) { |
| 9661 _addVariables(node.fields.variables); | 9661 _addVariables(node.fields.variables); |
| 9662 bool wasDiscarding = discardErrorsInInitializer; | 9662 bool wasDiscarding = discardErrorsInInitializer; |
| 9663 discardErrorsInInitializer = true; | 9663 discardErrorsInInitializer = true; |
| 9664 try { | 9664 try { |
| 9665 return super.visitFieldDeclaration(node); | 9665 return super.visitFieldDeclaration(node); |
| 9666 } finally { | 9666 } finally { |
| 9667 discardErrorsInInitializer = wasDiscarding; | 9667 discardErrorsInInitializer = wasDiscarding; |
| 9668 } | 9668 } |
| 9669 } | 9669 } |
| 9670 return super.visitFieldDeclaration(node); | 9670 return super.visitFieldDeclaration(node); |
| (...skipping 6260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15931 nonFields.add(node); | 15931 nonFields.add(node); |
| 15932 return null; | 15932 return null; |
| 15933 } | 15933 } |
| 15934 | 15934 |
| 15935 @override | 15935 @override |
| 15936 Object visitNode(AstNode node) => node.accept(TypeResolverVisitor_this); | 15936 Object visitNode(AstNode node) => node.accept(TypeResolverVisitor_this); |
| 15937 | 15937 |
| 15938 @override | 15938 @override |
| 15939 Object visitWithClause(WithClause node) => null; | 15939 Object visitWithClause(WithClause node) => null; |
| 15940 } | 15940 } |
| OLD | NEW |