Files
sdk/tests/compiler/dart2js/inference/data/foreign.dart
T
Stephen Adams f937039bd6 Remove unused JS_BUILTIN
Became unused at:
https://github.com/dart-lang/sdk/commit/1ae1ec7df4b22238fd61e9e529ad62a498b3199e
Change-Id: I92c167dc2a071a45b2635b9b1d907015043d60ab
Reviewed-on: https://dart-review.googlesource.com/31560
Reviewed-by: Emily Fortuna <efortuna@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2017-12-28 01:16:02 +00:00

63 lines
1.7 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.
/// 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';
/*element: main:[null]*/
main() {
jsCallInt();
jsCallEmpty();
jsCallVoid();
jsCallUnion();
jsBuiltin_rawRtiToJsConstructorName();
jsEmbeddedGlobal_getTypeFromName();
jsEmbeddedGlobal_libraries();
jsStringConcat();
jsGetStaticState();
}
/*element: jsCallEmpty:[null|subclass=Object]*/
jsCallEmpty() => JS('', '#', 0);
/*element: jsCallInt:[subclass=JSInt]*/
jsCallInt() => JS('int', '#', 0);
/*element: jsCallVoid:[null|subclass=Object]*/
jsCallVoid() => JS('void', '#', 0);
/*element: jsCallUnion:Union([exact=JSString], [subclass=JSInt])*/
jsCallUnion() => JS('int|String', '#', 0);
/*element: jsBuiltin_rawRtiToJsConstructorName:[exact=JSString]*/
jsBuiltin_rawRtiToJsConstructorName() {
return JS_BUILTIN('String', JsBuiltin.rawRtiToJsConstructorName, null);
}
/*element: jsEmbeddedGlobal_getTypeFromName:[null|subclass=Object]*/
jsEmbeddedGlobal_getTypeFromName() {
return JS_EMBEDDED_GLOBAL('', GET_TYPE_FROM_NAME);
}
/*element: jsEmbeddedGlobal_libraries:[null|exact=JSExtendableArray]*/
jsEmbeddedGlobal_libraries() {
return JS_EMBEDDED_GLOBAL('JSExtendableArray|Null', LIBRARIES);
}
/*element: jsStringConcat:[exact=JSString]*/
jsStringConcat() => JS_STRING_CONCAT('a', 'b');
/*element: jsGetStaticState:[null|subclass=Object]*/
jsGetStaticState() => JS_GET_STATIC_STATE();