| main = main::main; |
| library from "package:js/js.dart" as js { |
| additionalExports = (_js::JS, |
| _js::staticInterop) |
| |
| export "dart:_js_annotations" show JS, staticInterop; |
| |
| } |
| library from "org-dartlang-test:///lib1.dart" as lib1 { |
| |
| import "org-dartlang-test:///lib2.dart"; |
| |
| class Class extends dart.core::Object { |
| synthetic constructor •() → lib1::Class |
| : super dart.core::Object::•() |
| ; |
| method instanceMethod() → sta::StaticJSClass |
| return sta::StaticJSClass::factory(); |
| get instanceGetter() → sta::StaticJSClass |
| return dart.js_util::_callConstructorUnchecked0<sta::StaticJSClass>(dart.js_util::_getPropertyTrustType<dart.core::Object>(dart._js_helper::staticInteropGlobalContext, "JSClass")); |
| set instanceSetter((sta::StaticJSClass) → void f) → void {} |
| static method staticMethod() → sta::StaticJSClass |
| return sta::StaticJSClass::factory(); |
| static get staticGetter() → sta::StaticJSClass |
| return dart.js_util::_callConstructorUnchecked0<sta::StaticJSClass>(dart.js_util::_getPropertyTrustType<dart.core::Object>(dart._js_helper::staticInteropGlobalContext, "JSClass")); |
| static set staticSetter((sta::StaticJSClass) → void f) → void {} |
| static method _#new#tearOff() → lib1::Class |
| return new lib1::Class::•(); |
| } |
| static method topLevelMethod() → sta::StaticJSClass |
| return dart.js_util::_callConstructorUnchecked0<sta::StaticJSClass>(dart.js_util::_getPropertyTrustType<dart.core::Object>(dart._js_helper::staticInteropGlobalContext, "JSClass")); |
| static get topLevelGetter() → sta::StaticJSClass |
| return dart.js_util::_callConstructorUnchecked0<sta::StaticJSClass>(dart.js_util::_getPropertyTrustType<dart.core::Object>(dart._js_helper::staticInteropGlobalContext, "JSClass")); |
| static set topLevelSetter((sta::StaticJSClass) → void f) → void {} |
| } |
| @#C2 |
| library static_interop from "org-dartlang-test:///lib2.dart" as sta { |
| |
| import "package:js/js.dart"; |
| |
| @#C4 |
| @#C5 |
| class StaticJSClass extends dart.core::Object { |
| external static factory •() → sta::StaticJSClass; |
| static method _#new#tearOff() → sta::StaticJSClass |
| return dart.js_util::_callConstructorUnchecked0<sta::StaticJSClass>(dart.js_util::_getPropertyTrustType<dart.core::Object>(dart._js_helper::staticInteropGlobalContext, "JSClass")); |
| static factory factory() → sta::StaticJSClass { |
| return dart.js_util::_callConstructorUnchecked0<sta::StaticJSClass>(dart.js_util::_getPropertyTrustType<dart.core::Object>(dart._js_helper::staticInteropGlobalContext, "JSClass")); |
| } |
| static method _#factory#tearOff() → sta::StaticJSClass |
| return sta::StaticJSClass::factory(); |
| } |
| @#C2 |
| external static method eval(dart.core::String code) → void; |
| static method setUp() → void { |
| sta::eval("function JSClass() {}"); |
| } |
| } |
| library from "org-dartlang-test:///main.dart" as main { |
| |
| import "org-dartlang-test:///lib1.dart"; |
| import "org-dartlang-test:///lib2.dart"; |
| |
| class Subclass extends lib1::Class { |
| synthetic constructor •() → main::Subclass |
| : super lib1::Class::•() |
| ; |
| method method() → void { |
| sta::StaticJSClass baz = super.{lib1::Class::instanceMethod}(); |
| () → sta::StaticJSClass bazFunction = super.{lib1::Class::instanceMethod}; |
| baz = super.{lib1::Class::instanceGetter}; |
| super.{lib1::Class::instanceSetter} = (sta::StaticJSClass s) → void {}; |
| } |
| static method _#new#tearOff() → main::Subclass |
| return new main::Subclass::•(); |
| } |
| static method main() → dynamic { |
| sta::StaticJSClass foo = lib1::topLevelMethod(); |
| () → sta::StaticJSClass fooFunction = #C6; |
| foo = lib1::topLevelGetter; |
| lib1::topLevelSetter = (sta::StaticJSClass s) → void {}; |
| sta::StaticJSClass bar = lib1::Class::staticMethod(); |
| () → sta::StaticJSClass barFunction = #C7; |
| bar = lib1::Class::staticGetter; |
| lib1::Class::staticSetter = (sta::StaticJSClass s) → void {}; |
| lib1::Class c = new lib1::Class::•(); |
| sta::StaticJSClass baz = c.{lib1::Class::instanceMethod}(){() → sta::StaticJSClass}; |
| () → sta::StaticJSClass bazFunction = c.{lib1::Class::instanceMethod}{() → sta::StaticJSClass}; |
| baz = c.{lib1::Class::instanceGetter}{sta::StaticJSClass}; |
| c.{lib1::Class::instanceSetter} = (sta::StaticJSClass s) → void {}; |
| dart.core::print("Hello"); |
| } |
| } |
| constants { |
| #C1 = null |
| #C2 = _js_annotations::JS {name:#C1} |
| #C3 = "JSClass" |
| #C4 = _js_annotations::JS {name:#C3} |
| #C5 = _js_annotations::_StaticInterop {} |
| #C6 = static-tearoff lib1::topLevelMethod |
| #C7 = static-tearoff lib1::Class::staticMethod |
| } |
| |
| |
| Constructor coverage from constants: |
| org-dartlang-test:///lib2.dart: |
| - JS. (from org-dartlang-sdk:///lib/js/_js_annotations.dart) |
| - Object. (from org-dartlang-sdk:///lib/core/object.dart) |
| |