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

Unified Diff: lib/src/checker/checker.dart

Issue 1174643003: expose strong checker API, for use by analyzer_cli (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 6 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/analysis_context.dart ('k') | lib/src/checker/resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/checker/checker.dart
diff --git a/lib/src/checker/checker.dart b/lib/src/checker/checker.dart
index 72283659a9aac082765c216eaa04e7f6c866d9b8..3c44e81204eee129dcaa8d7bce8b9a05bfb72128 100644
--- a/lib/src/checker/checker.dart
+++ b/lib/src/checker/checker.dart
@@ -11,9 +11,9 @@ import 'package:analyzer/src/generated/scanner.dart' show Token, TokenType;
import 'package:logging/logging.dart' as logger;
import 'package:dev_compiler/src/info.dart';
-import 'package:dev_compiler/src/options.dart';
import 'package:dev_compiler/src/report.dart' show CheckerReporter;
import 'package:dev_compiler/src/utils.dart' show getMemberType;
+import 'package:dev_compiler/strong_mode.dart' show StrongModeOptions;
import 'rules.dart';
/// Checks for overriding declarations of fields and methods. This is used to
@@ -24,7 +24,7 @@ class _OverrideChecker {
final TypeRules _rules;
final CheckerReporter _reporter;
final bool _inferFromOverrides;
- _OverrideChecker(this._rules, this._reporter, CompilerOptions options)
+ _OverrideChecker(this._rules, this._reporter, StrongModeOptions options)
: _inferFromOverrides = options.inferFromOverrides;
void check(ClassDeclaration node) {
@@ -342,7 +342,7 @@ class CodeChecker extends RecursiveAstVisitor {
bool get failure => _failure || _overrideChecker._failure;
CodeChecker(
- TypeRules rules, CheckerReporter reporter, CompilerOptions options)
+ TypeRules rules, CheckerReporter reporter, StrongModeOptions options)
: _rules = rules,
_reporter = reporter,
_overrideChecker = new _OverrideChecker(rules, reporter, options);
« no previous file with comments | « lib/src/analysis_context.dart ('k') | lib/src/checker/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698