Index: tool/input_sdk/private/foreign_helper.dart |
diff --git a/tool/input_sdk/private/foreign_helper.dart b/tool/input_sdk/private/foreign_helper.dart |
index 468e640bcc465022f9e8fb907c5cf75c78cca4b2..a8314089c3adbe027cf91615759c59e08d966917 100644 |
--- a/tool/input_sdk/private/foreign_helper.dart |
+++ b/tool/input_sdk/private/foreign_helper.dart |
@@ -110,6 +110,15 @@ JS(String typeDescription, String codeTemplate, |
[arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11]) |
{} |
+/// Annotates the compiled Js name for fields and methods. |
+/// Similar behaviour to `JS` from `package:js/js.dart` (but usable from runtime |
+/// files), and not to be confused with `JSName` from `js_helper` (which deals |
+/// with names of externs). |
+class JSExportName { |
+ final String name; |
+ const JSExportName(this.name); |
+} |
+ |
/** |
* Returns the isolate in which this code is running. |
*/ |