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

Unified Diff: pkg/analyzer/lib/src/generated/resolver.dart

Issue 1507933002: Refactor strong mode to remove duplicate TypeRules (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 | « no previous file | pkg/analyzer/lib/src/generated/type_system.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/resolver.dart
diff --git a/pkg/analyzer/lib/src/generated/resolver.dart b/pkg/analyzer/lib/src/generated/resolver.dart
index 462339a3d483b39467104bab8b86eb9f0caf6ae0..796b216ceffa3de3c87ebb3f88f3d25e1ea23bc7 100644
--- a/pkg/analyzer/lib/src/generated/resolver.dart
+++ b/pkg/analyzer/lib/src/generated/resolver.dart
@@ -7,7 +7,6 @@ library engine.resolver;
import 'dart:collection';
import '../task/strong/info.dart' show InferredType, StaticInfo;
-import '../task/strong/rules.dart' show TypeRules;
import 'ast.dart';
import 'constant.dart';
import 'element.dart';
@@ -5792,11 +5791,6 @@ class InferenceContext {
final TypeSystem _typeSystem;
/**
- * The DDC type rules, used to create the inference info nodes.
- */
- final TypeRules _rules;
-
- /**
* A stack of return types for all of the enclosing
* functions and methods.
*/
@@ -5804,8 +5798,7 @@ class InferenceContext {
InferenceContext._(this._errorListener, TypeProvider typeProvider,
this._typeSystem, this._inferenceHints)
- : _typeProvider = typeProvider,
- _rules = new TypeRules(typeProvider);
+ : _typeProvider = typeProvider;
/**
* Get the return type of the current enclosing function, if any.
@@ -5846,7 +5839,7 @@ class InferenceContext {
* [type] has been inferred as the type of [node].
*/
void recordInference(Expression node, DartType type) {
- StaticInfo info = InferredType.create(_rules, node, type);
+ StaticInfo info = InferredType.create(_typeSystem, node, type);
if (!_inferenceHints || info == null) {
return;
}
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/type_system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698