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

Unified Diff: runtime/lib/invocation_mirror_patch.dart

Issue 12328019: - Improve the message for NoSuchMethodErrors that are (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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 | « runtime/lib/invocation_mirror.h ('k') | runtime/lib/lib_sources.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/invocation_mirror_patch.dart
===================================================================
--- runtime/lib/invocation_mirror_patch.dart (revision 18846)
+++ runtime/lib/invocation_mirror_patch.dart (working copy)
@@ -4,10 +4,25 @@
class _InvocationMirror implements InvocationMirror {
// Constants describing the invocation type.
- static final int _METHOD = 0;
- static final int _GETTER = 1;
- static final int _SETTER = 2;
+ // _FIELD cannot be generated by regular invocation mirrors.
+ static const int _METHOD = 0;
+ static const int _GETTER = 1;
+ static const int _SETTER = 2;
+ static const int _FIELD = 3;
+ static const int _TYPE_SHIFT = 0;
+ static const int _TYPE_BITS = 2;
+ static const int _TYPE_MASK = (1 << _TYPE_BITS) - 1;
+ // These values, except _DYNAMIC, are only used when throwing
+ // NoSuchMethodError for compile-time resolution failures.
+ static const int _DYNAMIC = 0;
+ static const int _STATIC = 1;
+ static const int _CONSTRUCTOR = 2;
+ static const int _TOP_LEVEL = 3;
+ static const int _CALL_SHIFT = _TYPE_BITS;
+ static const int _CALL_BITS = 2;
+ static const int _CALL_MASK = (1 << _CALL_BITS) - 1;
+
// Internal representation of the invocation mirror.
final String _functionName;
final List _argumentsDescriptor;
« no previous file with comments | « runtime/lib/invocation_mirror.h ('k') | runtime/lib/lib_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698