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

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

Issue 994253002: Add an analyzer option to properly check ".call" methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/lib/options.dart ('k') | pkg/analyzer/lib/src/generated/element_resolver.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_impl; 5 library analyzer_impl;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:io'; 9 import 'dart:io';
10 10
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 declaredVariables.define(variableName, value); 204 declaredVariables.define(variableName, value);
205 }); 205 });
206 } 206 }
207 // Uncomment the following to have errors reported on stdout and stderr 207 // Uncomment the following to have errors reported on stdout and stderr
208 AnalysisEngine.instance.logger = new StdLogger(options.log); 208 AnalysisEngine.instance.logger = new StdLogger(options.log);
209 209
210 // set options for context 210 // set options for context
211 AnalysisOptionsImpl contextOptions = new AnalysisOptionsImpl(); 211 AnalysisOptionsImpl contextOptions = new AnalysisOptionsImpl();
212 contextOptions.cacheSize = _MAX_CACHE_SIZE; 212 contextOptions.cacheSize = _MAX_CACHE_SIZE;
213 contextOptions.hint = !options.disableHints; 213 contextOptions.hint = !options.disableHints;
214 contextOptions.enableStrictCallChecks = options.enableStrictCallChecks;
214 contextOptions.analyzeFunctionBodiesPredicate = 215 contextOptions.analyzeFunctionBodiesPredicate =
215 _analyzeFunctionBodiesPredicate; 216 _analyzeFunctionBodiesPredicate;
216 contextOptions.generateImplicitErrors = options.showPackageWarnings; 217 contextOptions.generateImplicitErrors = options.showPackageWarnings;
217 contextOptions.generateSdkErrors = options.showSdkWarnings; 218 contextOptions.generateSdkErrors = options.showSdkWarnings;
218 context.analysisOptions = contextOptions; 219 context.analysisOptions = contextOptions;
219 220
220 librarySource = computeLibrarySource(); 221 librarySource = computeLibrarySource();
221 222
222 Uri libraryUri = librarySource.uri; 223 Uri libraryUri = librarySource.uri;
223 if (libraryUri.scheme == 'package' && libraryUri.pathSegments.length > 0) { 224 if (libraryUri.scheme == 'package' && libraryUri.pathSegments.length > 0) {
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 } 488 }
488 } 489 }
489 490
490 @override 491 @override
491 void logInformation2(String message, Object exception) { 492 void logInformation2(String message, Object exception) {
492 if (log) { 493 if (log) {
493 stdout.writeln(message); 494 stdout.writeln(message);
494 } 495 }
495 } 496 }
496 } 497 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/options.dart ('k') | pkg/analyzer/lib/src/generated/element_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698