blob: 1fac8e8835a722129d98e20d0858f4f7e47ba752 [file]
@#C2
library static_interop /*isNonNullableByDefault*/;
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;
}
static method B|(self::A a) self::B
return js_2::_callConstructorUnchecked1<self::B>(js_2::_getPropertyTrustType<core::Object>(js_2::globalThis, "B"), a);
static method B|_#new#tearOff(self::A a) → self::B
return self::B|(a);
static method B|named(core::int i) self::B
return js_2::_callConstructorUnchecked1<self::B>(js_2::_getPropertyTrustType<core::Object>(js_2::globalThis, "B"), i);
static method B|_#named#tearOff(core::int i) → self::B
return self::B|named(i);
static method B|get#field(lowered self::A #this) → self::A
return js_2::getProperty<self::A>(#this, "field");
static method B|set#field(lowered self::A #this, self::A #externalFieldValue) → void
return js_2::_setPropertyUnchecked<self::A>(#this, "field", #externalFieldValue);
static method B|method(lowered final self::B #this) → self::A
return js_2::_callMethodUnchecked0<self::A>(#this, "method");
static method B|get#method(lowered final self::B #this) → () → self::A
return () self::A => self::B|method(#this);
static method B|genericMethod<T extends core::Object? = dynamic>(lowered final self::B #this, self::B|genericMethod::T% t) → self::B|genericMethod::T%
return js_2::callMethod<self::B|genericMethod::T%>(#this, "genericMethod", <dynamic>[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% => self::B|genericMethod<T%>(#this, t);
static method B|get#getter(lowered final self::B #this) → self::B
return js_2::getProperty<self::B>(#this, "getter");
static method B|set#setter(lowered final self::B #this, self::B b) → void
return js_2::setProperty<self::B>(#this, "setter", b);
static get B|staticField() self::A
return js_2::getProperty<self::A>(js_2::_getPropertyTrustType<core::Object>(js_2::globalThis, "B"), "staticField");
static set B|staticField(self::A #externalFieldValue) → void
return js_2::_setPropertyUnchecked<self::A>(js_2::_getPropertyTrustType<core::Object>(js_2::globalThis, "B"), "staticField", #externalFieldValue);
static method B|staticMethod() self::A
return js_2::_callMethodUnchecked0<self::A>(js_2::_getPropertyTrustType<core::Object>(js_2::globalThis, "B"), "staticMethod");
static method B|staticGenericMethod<T extends core::Object? = dynamic>(self::B|staticGenericMethod::T% t) self::B|staticGenericMethod::T%
return js_2::callMethod<self::B|staticGenericMethod::T%>(js_2::_getPropertyTrustType<core::Object>(js_2::globalThis, "B"), "staticGenericMethod", <dynamic>[t]);
static get B|staticGetter() self::B
return js_2::getProperty<self::B>(js_2::_getPropertyTrustType<core::Object>(js_2::globalThis, "B"), "staticGetter");
static set B|staticSetter(self::B b) void
return js_2::setProperty<self::B>(js_2::_getPropertyTrustType<core::Object>(js_2::globalThis, "B"), "staticSetter", b);
static method method(self::A a) void {
self::B b1 = self::B|(a);
self::B b2 = self::B|named(0);
a = self::B|get#field(b1);
self::B|set#field(b1, a);
a = self::B|method(b1);
b2 = self::B|genericMethod<self::B>(b2, b2);
b1 = self::B|get#getter(b2);
self::B|set#setter(b1, b2);
a = self::B|staticField;
self::B|staticField = a;
a = self::B|staticMethod();
b2 = self::B|staticGenericMethod<self::B>(b2);
b1 = self::B|staticGetter;
self::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)