| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 /// Defines static information collected by the type checker and used later by | 5 /// Defines static information collected by the type checker and used later by |
| 6 /// emitters to generate code. | 6 /// emitters to generate code. |
| 7 | 7 |
| 8 import 'package:analyzer/dart/ast/ast.dart'; | 8 import 'package:analyzer/dart/ast/ast.dart'; |
| 9 import 'package:analyzer/dart/element/element.dart'; |
| 9 import 'package:analyzer/src/dart/ast/ast.dart'; | 10 import 'package:analyzer/src/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/src/dart/ast/utilities.dart'; | 11 import 'package:analyzer/src/dart/ast/utilities.dart'; |
| 11 import 'package:analyzer/src/generated/element.dart'; | |
| 12 import 'package:analyzer/src/generated/parser.dart'; | 12 import 'package:analyzer/src/generated/parser.dart'; |
| 13 | 13 |
| 14 import 'utils.dart' as utils; | 14 import 'utils.dart' as utils; |
| 15 |
| 15 import 'package:analyzer/src/task/strong/info.dart'; | 16 import 'package:analyzer/src/task/strong/info.dart'; |
| 16 export 'package:analyzer/src/task/strong/info.dart'; | 17 export 'package:analyzer/src/task/strong/info.dart'; |
| 17 | 18 |
| 18 /// Represents a summary of the results collected by running the program | 19 /// Represents a summary of the results collected by running the program |
| 19 /// checker. | 20 /// checker. |
| 20 class CheckerResults { | 21 class CheckerResults { |
| 21 final List<LibraryInfo> libraries; | 22 final List<LibraryInfo> libraries; |
| 22 final bool failure; | 23 final bool failure; |
| 23 | 24 |
| 24 CheckerResults(this.libraries, this.failure); | 25 CheckerResults(this.libraries, this.failure); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 104 |
| 104 @override | 105 @override |
| 105 ExpressionFunctionBody visitExpressionFunctionBody( | 106 ExpressionFunctionBody visitExpressionFunctionBody( |
| 106 ExpressionFunctionBody node) { | 107 ExpressionFunctionBody node) { |
| 107 var clone = super.visitExpressionFunctionBody(node); | 108 var clone = super.visitExpressionFunctionBody(node); |
| 108 (clone as FunctionBodyImpl).localVariableInfo = | 109 (clone as FunctionBodyImpl).localVariableInfo = |
| 109 (node as FunctionBodyImpl).localVariableInfo; | 110 (node as FunctionBodyImpl).localVariableInfo; |
| 110 return clone; | 111 return clone; |
| 111 } | 112 } |
| 112 } | 113 } |
| OLD | NEW |