| 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 library analyzer.src.task.dart; | 5 library analyzer.src.task.dart; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; | 10 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; |
| (...skipping 3472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3483 } | 3483 } |
| 3484 } | 3484 } |
| 3485 } | 3485 } |
| 3486 } | 3486 } |
| 3487 } | 3487 } |
| 3488 | 3488 |
| 3489 // | 3489 // |
| 3490 // Infer instance members. | 3490 // Infer instance members. |
| 3491 // | 3491 // |
| 3492 if (context.analysisOptions.strongMode) { | 3492 if (context.analysisOptions.strongMode) { |
| 3493 var inheritanceManager = new InheritanceManager( |
| 3494 resolutionMap.elementDeclaredByCompilationUnit(unit).library); |
| 3493 InstanceMemberInferrer inferrer = new InstanceMemberInferrer( | 3495 InstanceMemberInferrer inferrer = new InstanceMemberInferrer( |
| 3494 typeProvider, | 3496 typeProvider, (_) => inheritanceManager, fieldsWithDisabledInference, |
| 3495 new InheritanceManager( | |
| 3496 resolutionMap.elementDeclaredByCompilationUnit(unit).library), | |
| 3497 fieldsWithDisabledInference, | |
| 3498 typeSystem: context.typeSystem); | 3497 typeSystem: context.typeSystem); |
| 3499 inferrer.inferCompilationUnit(unit.element); | 3498 inferrer.inferCompilationUnit(unit.element); |
| 3500 } | 3499 } |
| 3501 // | 3500 // |
| 3502 // Record outputs. | 3501 // Record outputs. |
| 3503 // | 3502 // |
| 3504 outputs[RESOLVED_UNIT10] = unit; | 3503 outputs[RESOLVED_UNIT10] = unit; |
| 3505 outputs[CREATED_RESOLVED_UNIT10] = true; | 3504 outputs[CREATED_RESOLVED_UNIT10] = true; |
| 3506 } | 3505 } |
| 3507 | 3506 |
| (...skipping 3079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6587 | 6586 |
| 6588 @override | 6587 @override |
| 6589 bool moveNext() { | 6588 bool moveNext() { |
| 6590 if (_newSources.isEmpty) { | 6589 if (_newSources.isEmpty) { |
| 6591 return false; | 6590 return false; |
| 6592 } | 6591 } |
| 6593 currentTarget = _newSources.removeLast(); | 6592 currentTarget = _newSources.removeLast(); |
| 6594 return true; | 6593 return true; |
| 6595 } | 6594 } |
| 6596 } | 6595 } |
| OLD | NEW |