| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import '../common.dart'; | 5 import '../common.dart'; |
| 6 import '../common_elements.dart'; | 6 import '../common_elements.dart'; |
| 7 import '../elements/elements.dart' show Element; | 7 import '../elements/elements.dart' show Element; |
| 8 import '../elements/entities.dart'; | 8 import '../elements/entities.dart'; |
| 9 import '../elements/types.dart'; | 9 import '../elements/types.dart'; |
| 10 import '../util/util.dart' show Setlet; | 10 import '../util/util.dart' show Setlet; |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 return _helperFunctionsUsed.contains(element); | 332 return _helperFunctionsUsed.contains(element); |
| 333 } | 333 } |
| 334 | 334 |
| 335 @override | 335 @override |
| 336 bool isFieldUsedByBackend(FieldEntity element) { | 336 bool isFieldUsedByBackend(FieldEntity element) { |
| 337 return _helperClassesUsed.contains(element.enclosingClass); | 337 return _helperClassesUsed.contains(element.enclosingClass); |
| 338 } | 338 } |
| 339 | 339 |
| 340 @override | 340 @override |
| 341 Iterable<FunctionEntity> get globalFunctionDependencies => | 341 Iterable<FunctionEntity> get globalFunctionDependencies => |
| 342 _globalFunctionDependencies; | 342 _globalFunctionDependencies ?? const <FunctionEntity>[]; |
| 343 | 343 |
| 344 @override | 344 @override |
| 345 Iterable<ClassEntity> get globalClassDependencies => _globalClassDependencies; | 345 Iterable<ClassEntity> get globalClassDependencies => |
| 346 _globalClassDependencies ?? const <ClassEntity>[]; |
| 347 |
| 348 Iterable<FunctionEntity> get helperFunctionsUsed => _helperFunctionsUsed; |
| 349 |
| 350 Iterable<ClassEntity> get helperClassesUsed => _helperClassesUsed; |
| 346 } | 351 } |
| OLD | NEW |