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

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

Issue 1845403003: Begin implementing type inference for AST summaries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Break a long line. Created 4 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/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
(...skipping 2888 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
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