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

Unified Diff: sdk/lib/_internal/js_runtime/lib/shared/embedded_names.dart

Issue 2699073003: Support `void` as generic argument.
Patch Set: Add specialized messages for `void` for-ins. 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
Index: sdk/lib/_internal/js_runtime/lib/shared/embedded_names.dart
diff --git a/sdk/lib/_internal/js_runtime/lib/shared/embedded_names.dart b/sdk/lib/_internal/js_runtime/lib/shared/embedded_names.dart
index fb7b5dfdef672a5635782c154e07f17d02699366..474148e4b47660ec025e4d8cc194787f2374be1a 100644
--- a/sdk/lib/_internal/js_runtime/lib/shared/embedded_names.dart
+++ b/sdk/lib/_internal/js_runtime/lib/shared/embedded_names.dart
@@ -324,9 +324,6 @@ enum JsGetName {
TYPEDEF_TAG,
/// Name used to tag a function type.
FUNCTION_TYPE_TAG,
- /// Name used to tag void return in function type representations in
- /// JavaScript.
- FUNCTION_TYPE_VOID_RETURN_TAG,
/// Name used to tag return types in function type representations in
/// JavaScript.
FUNCTION_TYPE_RETURN_TYPE_TAG,
@@ -381,6 +378,11 @@ enum JsBuiltin {
/// JS_BUILTIN('=Object', JsBuiltin.createFunctionType)
createFunctionTypeRti,
+ /// Returns whether the given rti is a void rti.
+ ///
+ /// JS_BUILTIN("bool', JsBuiltin.isVoidRti, rti)
+ isVoidRti,
+
/// Returns the JavaScript-constructor name given an rti encoding.
///
/// JS_BUILTIN('String', JsBuiltin.rawRtiToJsConstructorName, rti)

Powered by Google App Engine
This is Rietveld 408576698