| 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;
|
| }
|
|
|