UNPKG

org.eclipse.n4js.mangelhaft

Version:

An xUnit Testing Framework for N4JS.

79 lines (76 loc) 2.19 kB
// Generated by N4JS transpiler; for copyright see original N4JS source file. import 'n4js-runtime' export function async(cb, reject) { return function() { var $capturedArgs = arguments; try { cb.apply(null, $capturedArgs); } catch(ex) { try { reject.call({}, ex); } catch(ex3) { console.log(ex3); } } }; } export const IFIXME = { [Symbol.hasInstance](instance) { return instance && instance.constructor && instance.constructor.n4type && instance.constructor.n4type.allImplementedInterfaces && instance.constructor.n4type.allImplementedInterfaces.indexOf('org/eclipse/n4js/mangelhaft/Test/IFIXME') !== -1; }, get n4type() { return $getReflectionForInterface(this, '["IFIXME","org/eclipse/n4js/mangelhaft/Test","org.eclipse.n4js.mangelhaft",["g.logStr"]]'); } }; export class FIXME1 extends N4Object { constructor() { super(); $initFieldsFromInterfaces(this, FIXME1, undefined, { logStr: true, n4type: true }); } get logStr() { return "FIXME joe from Mangelhaft"; } static get n4type() { return $getReflectionForClass(this, '["FIXME1","org/eclipse/n4js/mangelhaft/Test","org.eclipse.n4js.mangelhaft"]'); } static get $implements() { return [ IFIXME ]; } } export const IFIXME2 = { $fieldInits: { party: false }, [Symbol.hasInstance](instance) { return instance && instance.constructor && instance.constructor.n4type && instance.constructor.n4type.allImplementedInterfaces && instance.constructor.n4type.allImplementedInterfaces.indexOf('org/eclipse/n4js/mangelhaft/Test/IFIXME2') !== -1; }, get n4type() { return $getReflectionForInterface(this, '["IFIXME2","org/eclipse/n4js/mangelhaft/Test","org.eclipse.n4js.mangelhaft",["g.logStr"]]'); } }; export class FIXME2 extends N4Object { constructor() { super(); $initFieldsFromInterfaces(this, FIXME2, undefined, { logStr: true, n4type: true }); } get logStr() { return "FIXME joe from Mangelhaft"; } static get n4type() { return $getReflectionForClass(this, '["FIXME2","org/eclipse/n4js/mangelhaft/Test","org.eclipse.n4js.mangelhaft",["f:party"]]'); } static get $implements() { return [ IFIXME2 ]; } } //# sourceMappingURL=Test.map