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

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

Issue 1988023008: Name and hoist types (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Address comments Created 4 years, 7 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
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 6da7148b9f3eefb897062bef3febb8bf6674e647..9f14816f5d2d1966a8eeec78930087a2a290b1ca 100644
--- a/tool/input_sdk/private/ddc_runtime/operations.dart
+++ b/tool/input_sdk/private/ddc_runtime/operations.dart
@@ -556,6 +556,8 @@ noSuchMethod(obj, Invocation invocation) {
return JS('', '#.noSuchMethod(#)', obj, invocation);
}
+constFn(x) => JS('', '() => x');
+
runtimeType(obj) {
// Handle primitives where the method isn't on the object.
var result = _checkPrimitiveType(obj);

Powered by Google App Engine
This is Rietveld 408576698