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

Unified Diff: tool/input_sdk/private/foreign_helper.dart

Issue 1580413002: Add a `@JSExportName` annotation for internal use in the runtime (use it to export dart.assert inst… (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Moved js exported name resolution down to _maybeQualifiedName (Renamed to _emitTopLevelName) Created 4 years, 11 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/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.
*/

Powered by Google App Engine
This is Rietveld 408576698