blob: ea0c0641cc3e5bdef4d0301d7afe5c9b998f6a0a [file] [log] [blame]
@#C2
library static_interop;
import self as self;
import "dart:js_interop" as js_;
import "dart:core" as core;
import "dart:js_util" as js_2;
import "dart:js_interop";
abstract class A extends core::Object {
synthetic constructor •() self::A
: super core::Object::•()
;
}
@#C2
inline class B /* declaredRepresentationType = self::A */ {
get field = self::B|get#field;
set field = self::B|set#field;
method method = self::B|method;
tearoff method = self::B|get#method;
method genericMethod = self::B|genericMethod;
tearoff genericMethod = self::B|get#genericMethod;
get getter = self::B|get#getter;
static get staticField = get self::B|staticField;
static set staticField = set self::B|staticField;
static method staticMethod = self::B|staticMethod;
static method staticGenericMethod = self::B|staticGenericMethod;
static get staticGetter = get self::B|staticGetter;
set setter = self::B|set#setter;
static set staticSetter = set self::B|staticSetter;
constructor = self::B|;
tearoff = self::B|_#new#tearOff;
constructor named = self::B|named;
tearoff named = self::B|_#named#tearOff;
}
external static method B|(self::A a) self::B;
static method B|_#new#tearOff(self::A a) → self::B
return js_2::_callConstructorUnchecked1<self::B>(js_2::_getPropertyTrustType<core::Object>(js_2::globalThis, "B"), a);
external static method B|named(core::int i) self::B;
static method B|_#named#tearOff(core::int i) → self::B
return js_2::_callConstructorUnchecked1<self::B>(js_2::_getPropertyTrustType<core::Object>(js_2::globalThis, "B"), i);
external static method B|get#field(lowered self::A #this) → self::A;
external static method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void;
external static method B|method(lowered final self::B #this) → self::A;
static method B|get#method(lowered final self::B #this) → () → self::A
return () self::A => js_2::_callMethodUnchecked0<self::A>(#this, "method");
external static method B|genericMethod<T extends core::Object? = dynamic>(lowered final self::B #this, self::B|genericMethod::T% t) → self::B|genericMethod::T%;
static method B|get#genericMethod(lowered final self::B #this) → <T extends core::Object? = dynamic>(T%) → T%
return <T extends core::Object? = dynamic>(T% t) T% => js_2::callMethod<T%>(#this, "genericMethod", <dynamic>[t]);
external static method B|get#getter(lowered final self::B #this) → self::B;
external static method B|set#setter(lowered final self::B #this, self::B b) → void;
external static get B|staticField() self::A;
external static set B|staticField(self::A #externalFieldValue) → void;
external static method B|staticMethod() self::A;
external static method B|staticGenericMethod<T extends core::Object? = dynamic>(self::B|staticGenericMethod::T% t) self::B|staticGenericMethod::T%;
external static get B|staticGetter() self::B;
external static set B|staticSetter(self::B b) void;
static method method(self::A a) void {
self::B b1 = js_2::_callConstructorUnchecked1<self::B>(js_2::_getPropertyTrustType<core::Object>(js_2::globalThis, "B"), a);
self::B b2 = js_2::_callConstructorUnchecked1<self::B>(js_2::_getPropertyTrustType<core::Object>(js_2::globalThis, "B"), 0);
a = js_2::getProperty<self::A>(b1, "field");
js_2::setProperty<self::A>(b1, "field", a);
a = js_2::_callMethodUnchecked0<self::A>(b1, "method");
b2 = js_2::callMethod<self::B>(b2, "genericMethod", <dynamic>[b2]);
b1 = js_2::getProperty<self::B>(b2, "getter");
js_2::setProperty<self::B>(b1, "setter", b2);
a = js_2::getProperty<self::A>(js_2::_getPropertyTrustType<core::Object>(js_2::globalThis, "B"), "staticField");
js_2::setProperty<self::A>(js_2::_getPropertyTrustType<core::Object>(js_2::globalThis, "B"), "staticField", a);
a = js_2::_callMethodUnchecked0<self::A>(js_2::_getPropertyTrustType<core::Object>(js_2::globalThis, "B"), "staticMethod");
b2 = js_2::callMethod<self::B>(js_2::_getPropertyTrustType<core::Object>(js_2::globalThis, "B"), "staticGenericMethod", <dynamic>[b2]);
b1 = js_2::getProperty<self::B>(js_2::_getPropertyTrustType<core::Object>(js_2::globalThis, "B"), "staticGetter");
js_2::setProperty<self::B>(js_2::_getPropertyTrustType<core::Object>(js_2::globalThis, "B"), "staticSetter", b2);
}
constants {
#C1 = null
#C2 = js_::JS {name:#C1}
}
Constructor coverage from constants:
org-dartlang-testcase:///external.dart:
- JS. (from org-dartlang-sdk:///lib/js_interop/js_interop.dart)
- Object. (from org-dartlang-sdk:///lib/core/object.dart)