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

Unified Diff: lib/strong_mode.dart

Issue 1392383002: further refactoring: merge RestrictedRules into TypeRules (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: rebase 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/compiler.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/strong_mode.dart
diff --git a/lib/strong_mode.dart b/lib/strong_mode.dart
index eb0091a0c5931d79fec815b7d7913b0fd0d1219b..a09449476091e86d9ba1de717f911d2a07d7d7bd 100644
--- a/lib/strong_mode.dart
+++ b/lib/strong_mode.dart
@@ -27,7 +27,7 @@ import 'package:args/args.dart';
import 'src/analysis_context.dart' show enableDevCompilerInference;
import 'src/checker/checker.dart' show CodeChecker;
-import 'src/checker/rules.dart' show RestrictedRules;
+import 'src/checker/rules.dart' show TypeRules;
/// A type checker for Dart code that operates under stronger rules, and has
/// the ability to do local type inference in some situations.
@@ -43,7 +43,7 @@ class StrongChecker {
// task model.
if (!AnalysisEngine
.instance.useTaskModel) enableDevCompilerInference(context, options);
- var rules = new RestrictedRules(context.typeProvider, options: options);
+ var rules = new TypeRules(context.typeProvider, options: options);
var reporter = new _ErrorCollector(options.hints);
var checker = new CodeChecker(rules, reporter);
return new StrongChecker._(context, checker, reporter);
« no previous file with comments | « lib/src/compiler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698