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

Unified Diff: tool/input_sdk/private/ddc_runtime/operations.dart

Issue 2158173003: fix #603, support mock objects (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: add test Created 4 years, 5 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 | « test/codegen_test.dart ('k') | tool/sdk_expected_errors.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/private/ddc_runtime/operations.dart
diff --git a/tool/input_sdk/private/ddc_runtime/operations.dart b/tool/input_sdk/private/ddc_runtime/operations.dart
index f34801cf6cd94ee4fe01e1013316ffb390533fe2..dac14e90d76832b7281c1d6b641a81cc36c4cecb 100644
--- a/tool/input_sdk/private/ddc_runtime/operations.dart
+++ b/tool/input_sdk/private/ddc_runtime/operations.dart
@@ -6,7 +6,7 @@
/// generator.
part of dart._runtime;
-class _Invocation extends Invocation {
+class InvocationImpl extends Invocation {
final Symbol memberName;
final List positionalArguments;
final Map<Symbol, dynamic> namedArguments;
@@ -14,7 +14,7 @@ class _Invocation extends Invocation {
final bool isGetter;
final bool isSetter;
- _Invocation(String memberName, this.positionalArguments,
+ InvocationImpl(String memberName, this.positionalArguments,
{namedArguments,
this.isMethod: false,
this.isGetter: false,
@@ -39,7 +39,7 @@ dload(obj, field) {
return JS('', '#[#]', obj, f);
}
return noSuchMethod(obj,
- new _Invocation(field, JS('', '[]'), isGetter: true));
+ new InvocationImpl(field, JS('', '[]'), isGetter: true));
}
dput(obj, field, value) {
@@ -49,7 +49,7 @@ dput(obj, field, value) {
return JS('', '#[#] = #', obj, f, value);
}
return noSuchMethod(obj,
- new _Invocation(field, JS('', '[#]', value), isSetter: true));
+ new InvocationImpl(field, JS('', '[#]', value), isSetter: true));
}
/// Check that a function of a given type can be applied to
@@ -104,7 +104,7 @@ _checkAndCall(f, ftype, obj, typeArgs, args, name) => JS('', '''(() => {
args[args.length - 1].__proto__ == Object.prototype) {
namedArgs = args.pop();
}
- return $noSuchMethod(originalTarget, new $_Invocation(
+ return $noSuchMethod(originalTarget, new $InvocationImpl(
$name, $args, {namedArguments: namedArgs, isMethod: true}));
}
if (!($f instanceof Function)) {
@@ -224,7 +224,7 @@ _callMethod(obj, name, typeArgs, args, displayName) {
var symbol = _canonicalMember(obj, name);
if (symbol == null) {
return noSuchMethod(obj,
- new _Invocation(displayName, args, isMethod: true));
+ new InvocationImpl(displayName, args, isMethod: true));
}
var f = obj != null ? JS('', '#[#]', obj, symbol) : null;
var ftype = getMethodType(obj, symbol);
« no previous file with comments | « test/codegen_test.dart ('k') | tool/sdk_expected_errors.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698