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

Unified Diff: pkg/compiler/lib/src/types/types.dart

Issue 2777093010: Use entities in NoSuchMethodRegistry (Closed)
Patch Set: Move as cast. Created 3 years, 9 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 | « pkg/compiler/lib/src/ssa/types.dart ('k') | tests/compiler/dart2js/assert_message_throw_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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."));
« no previous file with comments | « pkg/compiler/lib/src/ssa/types.dart ('k') | tests/compiler/dart2js/assert_message_throw_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698