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

Unified Diff: lib/src/compiler.dart

Issue 1398873002: remove "infer from overrides" option which is now obsolete (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/checker/resolver.dart ('k') | lib/strong_mode.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/compiler.dart
diff --git a/lib/src/compiler.dart b/lib/src/compiler.dart
index 56e26e6b8c42ff311b972e52c9eac4768370224b..7899d0d916f96cb63df31bf06c07e7a4c0bee450 100644
--- a/lib/src/compiler.dart
+++ b/lib/src/compiler.dart
@@ -354,15 +354,11 @@ abstract class AbstractCompiler {
[AnalysisErrorListener reporter])
: context = context,
options = options,
- checker = createChecker(context.typeProvider, options.strongOptions,
+ checker = new CodeChecker(
+ new RestrictedRules(context.typeProvider,
+ options: options.strongOptions),
reporter ?? AnalysisErrorListener.NULL_LISTENER);
- static CodeChecker createChecker(TypeProvider typeProvider,
- StrongModeOptions options, AnalysisErrorListener reporter) {
- return new CodeChecker(
- new RestrictedRules(typeProvider, options: options), reporter, options);
- }
-
String get outputDir => options.codegenOptions.outputDir;
TypeRules get rules => checker.rules;
AnalysisErrorListener get reporter => checker.reporter;
« no previous file with comments | « lib/src/checker/resolver.dart ('k') | lib/strong_mode.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698