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

Side by Side Diff: pkg/analyzer_cli/lib/src/driver.dart

Issue 2144383002: fix #26782, add no-implicit-casts, no-implicit-dynamic options (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merged Created 4 years, 5 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/task/options.dart ('k') | pkg/analyzer_cli/lib/src/options.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_cli.src.driver; 5 library analyzer_cli.src.driver;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 import 'dart:io'; 9 import 'dart:io';
10 10
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 CommandLineOptions options) { 641 CommandLineOptions options) {
642 AnalysisOptionsImpl contextOptions = new AnalysisOptionsImpl(); 642 AnalysisOptionsImpl contextOptions = new AnalysisOptionsImpl();
643 contextOptions.trackCacheDependencies = false; 643 contextOptions.trackCacheDependencies = false;
644 contextOptions.hint = !options.disableHints; 644 contextOptions.hint = !options.disableHints;
645 contextOptions.enableStrictCallChecks = options.enableStrictCallChecks; 645 contextOptions.enableStrictCallChecks = options.enableStrictCallChecks;
646 contextOptions.enableSuperMixins = options.enableSuperMixins; 646 contextOptions.enableSuperMixins = options.enableSuperMixins;
647 contextOptions.generateImplicitErrors = options.showPackageWarnings; 647 contextOptions.generateImplicitErrors = options.showPackageWarnings;
648 contextOptions.generateSdkErrors = options.showSdkWarnings; 648 contextOptions.generateSdkErrors = options.showSdkWarnings;
649 contextOptions.lint = options.lints; 649 contextOptions.lint = options.lints;
650 contextOptions.strongMode = options.strongMode; 650 contextOptions.strongMode = options.strongMode;
651 contextOptions.implicitCasts = options.implicitCasts;
652 contextOptions.implicitDynamic = options.implicitDynamic;
651 return contextOptions; 653 return contextOptions;
652 } 654 }
653 655
654 static void setAnalysisContextOptions( 656 static void setAnalysisContextOptions(
655 AnalysisContext context, 657 AnalysisContext context,
656 CommandLineOptions options, 658 CommandLineOptions options,
657 void configureContextOptions(AnalysisOptionsImpl contextOptions)) { 659 void configureContextOptions(AnalysisOptionsImpl contextOptions)) {
658 Map<String, String> definedVariables = options.definedVariables; 660 Map<String, String> definedVariables = options.definedVariables;
659 if (definedVariables.isNotEmpty) { 661 if (definedVariables.isNotEmpty) {
660 DeclaredVariables declaredVariables = context.declaredVariables; 662 DeclaredVariables declaredVariables = context.declaredVariables;
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 for (var package in packages) { 834 for (var package in packages) {
833 var packageName = path.basename(package.path); 835 var packageName = path.basename(package.path);
834 var realPath = package.resolveSymbolicLinksSync(); 836 var realPath = package.resolveSymbolicLinksSync();
835 result[packageName] = [ 837 result[packageName] = [
836 PhysicalResourceProvider.INSTANCE.getFolder(realPath) 838 PhysicalResourceProvider.INSTANCE.getFolder(realPath)
837 ]; 839 ];
838 } 840 }
839 return result; 841 return result;
840 } 842 }
841 } 843 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/task/options.dart ('k') | pkg/analyzer_cli/lib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698