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/token.dart'; | 10 import 'package:analyzer/dart/ast/token.dart'; |
(...skipping 2888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2899 void internalPerform() { | 2899 void internalPerform() { |
2900 // | 2900 // |
2901 // Prepare inputs. | 2901 // Prepare inputs. |
2902 // | 2902 // |
2903 CompilationUnit unit = getRequiredInput(UNIT_INPUT); | 2903 CompilationUnit unit = getRequiredInput(UNIT_INPUT); |
2904 TypeProvider typeProvider = getRequiredInput(TYPE_PROVIDER_INPUT); | 2904 TypeProvider typeProvider = getRequiredInput(TYPE_PROVIDER_INPUT); |
2905 // | 2905 // |
2906 // Infer instance members. | 2906 // Infer instance members. |
2907 // | 2907 // |
2908 if (context.analysisOptions.strongMode) { | 2908 if (context.analysisOptions.strongMode) { |
2909 InstanceMemberInferrer inferrer = new InstanceMemberInferrer(typeProvider, | 2909 InstanceMemberInferrer inferrer = new InstanceMemberInferrer( |
| 2910 typeProvider, new InheritanceManager(unit.element.library), |
2910 typeSystem: context.typeSystem); | 2911 typeSystem: context.typeSystem); |
2911 inferrer.inferCompilationUnit(unit.element); | 2912 inferrer.inferCompilationUnit(unit.element); |
2912 } | 2913 } |
2913 // | 2914 // |
2914 // Record outputs. | 2915 // Record outputs. |
2915 // | 2916 // |
2916 outputs[RESOLVED_UNIT9] = unit; | 2917 outputs[RESOLVED_UNIT9] = unit; |
2917 outputs[CREATED_RESOLVED_UNIT9] = true; | 2918 outputs[CREATED_RESOLVED_UNIT9] = true; |
2918 } | 2919 } |
2919 | 2920 |
(...skipping 2448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5368 | 5369 |
5369 @override | 5370 @override |
5370 bool moveNext() { | 5371 bool moveNext() { |
5371 if (_newSources.isEmpty) { | 5372 if (_newSources.isEmpty) { |
5372 return false; | 5373 return false; |
5373 } | 5374 } |
5374 currentTarget = _newSources.removeLast(); | 5375 currentTarget = _newSources.removeLast(); |
5375 return true; | 5376 return true; |
5376 } | 5377 } |
5377 } | 5378 } |
OLD | NEW |