| // Copyright (c) 2018, 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. | |
| /*member: main: | |
| static=[ | |
| testConstRedirectingFactoryInvoke(0), | |
| testConstRedirectingFactoryInvokeGeneric(0), | |
| testConstRedirectingFactoryInvokeGenericDynamic(0), | |
| testConstRedirectingFactoryInvokeGenericRaw(0), | |
| testConstructorInvoke(0), | |
| testConstructorInvokeGeneric(0), | |
| testConstructorInvokeGenericDynamic(0), | |
| testConstructorInvokeGenericRaw(0), | |
| testFactoryConstructor(0), | |
| testFactoryInvoke(0), | |
| testFactoryInvokeGeneric(0), | |
| testFactoryInvokeGenericDynamic(0), | |
| testFactoryInvokeGenericRaw(0), | |
| testImplicitConstructor(0), | |
| testRedirectingFactoryInvoke(0), | |
| testRedirectingFactoryInvokeGeneric(0), | |
| testRedirectingFactoryInvokeGenericDynamic(0), | |
| testRedirectingFactoryInvokeGenericRaw(0)] | |
| */ | |
| main() { | |
| testConstructorInvoke(); | |
| testConstructorInvokeGeneric(); | |
| testConstructorInvokeGenericRaw(); | |
| testConstructorInvokeGenericDynamic(); | |
| testFactoryInvoke(); | |
| testFactoryInvokeGeneric(); | |
| testFactoryInvokeGenericRaw(); | |
| testFactoryInvokeGenericDynamic(); | |
| testRedirectingFactoryInvoke(); | |
| testRedirectingFactoryInvokeGeneric(); | |
| testRedirectingFactoryInvokeGenericRaw(); | |
| testRedirectingFactoryInvokeGenericDynamic(); | |
| testConstRedirectingFactoryInvoke(); | |
| testConstRedirectingFactoryInvokeGeneric(); | |
| testConstRedirectingFactoryInvokeGenericRaw(); | |
| testConstRedirectingFactoryInvokeGenericDynamic(); | |
| testImplicitConstructor(); | |
| testFactoryConstructor(); | |
| } | |
| /*member: testConstructorInvoke:static=[Class.generative(0)]*/ | |
| testConstructorInvoke() { | |
| Class.generative(); | |
| } | |
| /*member: testConstructorInvokeGeneric:static=[ | |
| GenericClass.generative(0), | |
| checkTypeBound(4)]*/ | |
| testConstructorInvokeGeneric() { | |
| GenericClass<int, String>.generative(); | |
| } | |
| /*member: testConstructorInvokeGenericRaw:static=[GenericClass.generative(0)]*/ | |
| testConstructorInvokeGenericRaw() { | |
| GenericClass.generative(); | |
| } | |
| /*member: testConstructorInvokeGenericDynamic:static=[GenericClass.generative(0)]*/ | |
| testConstructorInvokeGenericDynamic() { | |
| GenericClass<dynamic, dynamic>.generative(); | |
| } | |
| /*member: testFactoryInvoke:static=[Class.fact(0)]*/ | |
| testFactoryInvoke() { | |
| Class.fact(); | |
| } | |
| /*member: testFactoryInvokeGeneric:static=[ | |
| GenericClass.fact(0), | |
| checkTypeBound(4)]*/ | |
| testFactoryInvokeGeneric() { | |
| GenericClass<int, String>.fact(); | |
| } | |
| /*member: testFactoryInvokeGenericRaw:static=[GenericClass.fact(0)]*/ | |
| testFactoryInvokeGenericRaw() { | |
| GenericClass.fact(); | |
| } | |
| /*member: testFactoryInvokeGenericDynamic:static=[GenericClass.fact(0)]*/ | |
| testFactoryInvokeGenericDynamic() { | |
| GenericClass<dynamic, dynamic>.fact(); | |
| } | |
| /*member: testRedirectingFactoryInvoke:static=[Class.generative(0)]*/ | |
| testRedirectingFactoryInvoke() { | |
| Class.redirect(); | |
| } | |
| /*member: testRedirectingFactoryInvokeGeneric:static=[ | |
| GenericClass.generative(0), | |
| checkTypeBound(4)]*/ | |
| testRedirectingFactoryInvokeGeneric() { | |
| GenericClass<int, String>.redirect(); | |
| } | |
| /*member: testRedirectingFactoryInvokeGenericRaw:static=[GenericClass.generative(0)]*/ | |
| testRedirectingFactoryInvokeGenericRaw() { | |
| GenericClass.redirect(); | |
| } | |
| /*member: testRedirectingFactoryInvokeGenericDynamic:static=[GenericClass.generative(0)]*/ | |
| testRedirectingFactoryInvokeGenericDynamic() { | |
| GenericClass<dynamic, dynamic>.redirect(); | |
| } | |
| /*member: testConstRedirectingFactoryInvoke:type=[const:Class]*/ | |
| testConstRedirectingFactoryInvoke() { | |
| const Class.redirect(); | |
| } | |
| /*member: testConstRedirectingFactoryInvokeGeneric:type=[const:GenericClass<int,String>]*/ | |
| testConstRedirectingFactoryInvokeGeneric() { | |
| const GenericClass<int, String>.redirect(); | |
| } | |
| /*member: testConstRedirectingFactoryInvokeGenericRaw:type=[const:GenericClass<dynamic,dynamic>]*/ | |
| testConstRedirectingFactoryInvokeGenericRaw() { | |
| const GenericClass.redirect(); | |
| } | |
| /*member: testConstRedirectingFactoryInvokeGenericDynamic:type=[const:GenericClass<dynamic,dynamic>]*/ | |
| testConstRedirectingFactoryInvokeGenericDynamic() { | |
| const GenericClass<dynamic, dynamic>.redirect(); | |
| } | |
| /*member: ClassImplicitConstructor.:static=[Object.(0)]*/ | |
| class ClassImplicitConstructor {} | |
| /*member: testImplicitConstructor:static=[ClassImplicitConstructor.(0)]*/ | |
| testImplicitConstructor() => ClassImplicitConstructor(); | |
| class ClassFactoryConstructor { | |
| /*member: ClassFactoryConstructor._:static=[Object.(0)]*/ | |
| ClassFactoryConstructor._(); | |
| /*member: ClassFactoryConstructor.:static=[ClassFactoryConstructor._(0)]*/ | |
| factory ClassFactoryConstructor() => ClassFactoryConstructor._(); | |
| } | |
| /*member: testFactoryConstructor:static=[ClassFactoryConstructor.(0)]*/ | |
| testFactoryConstructor() => ClassFactoryConstructor(); | |
| class Class { | |
| /*member: Class.generative:static=[Object.(0)]*/ | |
| const Class.generative(); | |
| /*member: Class.fact:static=[Class.generative(0)]*/ | |
| factory Class.fact() => Class.generative(); | |
| const factory Class.redirect() = Class.generative; | |
| } | |
| class GenericClass<X, Y> { | |
| /*member: GenericClass.generative:static=[Object.(0)]*/ | |
| const GenericClass.generative(); | |
| /*member: GenericClass.fact: | |
| static=[ | |
| GenericClass.generative(0), | |
| Rti._bind(1), | |
| Rti._eval(1), | |
| _arrayInstanceType(1), | |
| _asBool(1), | |
| _asBoolQ(1), | |
| _asDouble(1), | |
| _asDoubleQ(1), | |
| _asInt(1), | |
| _asIntQ(1), | |
| _asNum(1), | |
| _asNumQ(1), | |
| _asObject(1), | |
| _asString(1), | |
| _asStringQ(1), | |
| _asTop(1), | |
| _generalAsCheckImplementation(1), | |
| _generalIsTestImplementation(1), | |
| _generalNullableAsCheckImplementation(1), | |
| _generalNullableIsTestImplementation(1), | |
| _installSpecializedAsCheck(1), | |
| _installSpecializedIsTest(1), | |
| _instanceType(1), | |
| _isBool(1), | |
| _isInt(1), | |
| _isNum(1), | |
| _isObject(1), | |
| _isString(1), | |
| _isTop(1), | |
| checkTypeBound(4), | |
| findType(1), | |
| instanceType(1)], | |
| type=[ | |
| inst:Closure, | |
| inst:JSBool, | |
| param:Object?] | |
| */ | |
| factory GenericClass.fact() => GenericClass<X, Y>.generative(); | |
| const factory GenericClass.redirect() = GenericClass<X, Y>.generative; | |
| } |