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

Unified Diff: lib/html/dartium/html_dartium.dart

Issue 11231074: Change signature of noSuchMethod to take an InvocationMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: One more test expectation Created 8 years, 2 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:
Download patch
« no previous file with comments | « lib/core/object.dart ('k') | lib/html/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/dartium/html_dartium.dart
diff --git a/lib/html/dartium/html_dartium.dart b/lib/html/dartium/html_dartium.dart
index 4eb0b9999754c9dc5ee2af8f832bcdf279dbae01..3b67994815735bfb21e430f300a8112020582a37 100644
--- a/lib/html/dartium/html_dartium.dart
+++ b/lib/html/dartium/html_dartium.dart
@@ -13367,11 +13367,18 @@ class _ElementImpl extends _NodeImpl implements Element {
// Hooks to support custom WebComponents.
var xtag;
- noSuchMethod(String name, List args) {
+ noSuchMethod(InvocationMirror invocation) {
if (dynamicUnknownElementDispatcher == null) {
- throw new NoSuchMethodError(this, name, args);
+ throw new NoSuchMethodError(this, invocation.memberName,
+ invocation.positionalArguments,
+ invocation.namedArguments);
} else {
- return dynamicUnknownElementDispatcher(this, name, args);
+ String hackedName = invocation.memberName;
+ if (invocation.isGetter) hackedName = "get:$hackedName";
+ if (invocation.isSetter) hackedName = "set:$hackedName";
+ return dynamicUnknownElementDispatcher(this,
+ hackedName,
+ invociation.positionalArguments);
}
}
« no previous file with comments | « lib/core/object.dart ('k') | lib/html/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698