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

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

Issue 1700403002: fixes #25793, make strong checker tests sane (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | pkg/analyzer/test/src/context/mock_sdk.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 5095 matching lines...) Expand 10 before | Expand all | Expand 10 after
5106 TaskDescriptor get descriptor => DESCRIPTOR; 5106 TaskDescriptor get descriptor => DESCRIPTOR;
5107 5107
5108 @override 5108 @override
5109 void internalPerform() { 5109 void internalPerform() {
5110 RecordingErrorListener errorListener = new RecordingErrorListener(); 5110 RecordingErrorListener errorListener = new RecordingErrorListener();
5111 // 5111 //
5112 // Prepare inputs. 5112 // Prepare inputs.
5113 // 5113 //
5114 TypeProvider typeProvider = getRequiredInput(TYPE_PROVIDER_INPUT); 5114 TypeProvider typeProvider = getRequiredInput(TYPE_PROVIDER_INPUT);
5115 CompilationUnit unit = getRequiredInput(UNIT_INPUT); 5115 CompilationUnit unit = getRequiredInput(UNIT_INPUT);
5116 if (context.analysisOptions.strongMode) { 5116 AnalysisOptionsImpl options = context.analysisOptions;
5117 if (options.strongMode) {
5117 unit.accept(new CodeChecker( 5118 unit.accept(new CodeChecker(
5118 typeProvider, new StrongTypeSystemImpl(), errorListener)); 5119 typeProvider, new StrongTypeSystemImpl(), errorListener,
5120 hints: options.strongModeHints));
5119 } 5121 }
5120 // 5122 //
5121 // Record outputs. 5123 // Record outputs.
5122 // 5124 //
5123 outputs[STRONG_MODE_ERRORS] = getUniqueErrors(errorListener.errors); 5125 outputs[STRONG_MODE_ERRORS] = getUniqueErrors(errorListener.errors);
5124 outputs[CREATED_RESOLVED_UNIT] = true; 5126 outputs[CREATED_RESOLVED_UNIT] = true;
5125 outputs[RESOLVED_UNIT] = unit; 5127 outputs[RESOLVED_UNIT] = unit;
5126 } 5128 }
5127 5129
5128 /** 5130 /**
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
5374 5376
5375 @override 5377 @override
5376 bool moveNext() { 5378 bool moveNext() {
5377 if (_newSources.isEmpty) { 5379 if (_newSources.isEmpty) {
5378 return false; 5380 return false;
5379 } 5381 }
5380 currentTarget = _newSources.removeLast(); 5382 currentTarget = _newSources.removeLast();
5381 return true; 5383 return true;
5382 } 5384 }
5383 } 5385 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/src/context/mock_sdk.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698