7754a868dd
Change-Id: I58391845d3e28b041b7bb1746e696610d113ea7f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/195511 Reviewed-by: Joshua Litt <joshualitt@google.com> Commit-Queue: Stephen Adams <sra@google.com>
47 lines
1.2 KiB
Dart
47 lines
1.2 KiB
Dart
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// @dart = 2.7
|
|
|
|
/// ignore: IMPORT_INTERNAL_LIBRARY
|
|
import 'dart:_foreign_helper';
|
|
|
|
/// ignore: IMPORT_INTERNAL_LIBRARY
|
|
import 'dart:_js_embedded_names';
|
|
|
|
/// ignore: IMPORT_INTERNAL_LIBRARY, UNUSED_IMPORT
|
|
import 'dart:_interceptors';
|
|
|
|
/*member: main:[null]*/
|
|
main() {
|
|
jsCallInt();
|
|
jsCallEmpty();
|
|
jsCallVoid();
|
|
jsCallUnion();
|
|
|
|
jsEmbeddedGlobal_getTypeFromName();
|
|
|
|
jsStringConcat();
|
|
}
|
|
|
|
/*member: jsCallEmpty:[null|subclass=Object]*/
|
|
jsCallEmpty() => JS('', '#', 0);
|
|
|
|
/*member: jsCallInt:[subclass=JSInt]*/
|
|
jsCallInt() => JS('int', '#', 0);
|
|
|
|
/*member: jsCallVoid:[null|subclass=Object]*/
|
|
jsCallVoid() => JS('void', '#', 0);
|
|
|
|
/*member: jsCallUnion:Union([exact=JSString], [subclass=JSInt])*/
|
|
jsCallUnion() => JS('int|String', '#', 0);
|
|
|
|
/*member: jsEmbeddedGlobal_getTypeFromName:[null|subclass=Object]*/
|
|
jsEmbeddedGlobal_getTypeFromName() {
|
|
return JS_EMBEDDED_GLOBAL('', GET_TYPE_FROM_NAME);
|
|
}
|
|
|
|
/*member: jsStringConcat:[exact=JSString]*/
|
|
jsStringConcat() => JS_STRING_CONCAT('a', 'b');
|