Index: pkg/compiler/lib/src/types/types.dart |
diff --git a/pkg/compiler/lib/src/types/types.dart b/pkg/compiler/lib/src/types/types.dart |
index d4565d5fadd0b7d73604ebe14af363ba80628e8e..2bce947c5f282aae4bc5bffec2c337ebc0c89e0a 100644 |
--- a/pkg/compiler/lib/src/types/types.dart |
+++ b/pkg/compiler/lib/src/types/types.dart |
@@ -194,9 +194,22 @@ class GlobalTypeInferenceResults { |
final Compiler _compiler; |
final Map<Element, GlobalTypeInferenceElementResult> _elementResults = {}; |
+ GlobalTypeInferenceElementResult resultOfMember(MemberElement element) { |
+ return _resultOf(element); |
+ } |
+ |
+ GlobalTypeInferenceElementResult resultOfParameter(ParameterElement element) { |
+ return _resultOf(element); |
+ } |
+ |
+ @deprecated |
+ GlobalTypeInferenceElementResult resultOfElement(AstElement element) { |
+ return _resultOf(element); |
+ } |
+ |
// TODO(sigmund,johnniwinther): compute result objects eagerly and make it an |
// error to query for results that don't exist. |
- GlobalTypeInferenceElementResult resultOf(AstElement element) { |
+ GlobalTypeInferenceElementResult _resultOf(AstElement element) { |
assert(invariant(element, !element.isGenerativeConstructorBody, |
message: "unexpected input: ConstructorBodyElements are created" |
" after global type inference, no data is avaiable for them.")); |