Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: pkg/analyzer/lib/src/task/dart.dart

Issue 2832893002: Issue 29398. Infer instance members using InheritanceManager of the ClassElement. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/src/summary/link.dart ('k') | pkg/analyzer/lib/src/task/strong_mode.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/link.dart ('k') | pkg/analyzer/lib/src/task/strong_mode.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698