> No, there should be a full signature, if I'm not mistaken I can't see any examples, do you know what would look like such JSDoc and signatures for the getter and setter of my example ?
Frédéric THOMAS ---------------------------------------- > From: e...@ixsoftware.nl > Date: Tue, 7 Jul 2015 17:06:35 +0200 > Subject: Re: [FalconJx / EXTERNC] interface members have no JSDoc ? > To: dev@flex.apache.org > > No, there should be a full signature, if I'm not mistaken. But since I was > last in the emitter, they switched to using Object.createProperties. I'm > not familiar with the expected outcome for that pattern. > > EdB > > > > On Tue, Jul 7, 2015 at 4:01 PM, Frédéric THOMAS <webdoubl...@hotmail.com> > wrote: > >> Is that expected the qux member has no JSDoc and is emitted as a simple >> var? >> >> If I compile that emitted JS back to AS3, how the EXTERNC is suppose to >> guess the Type without JSDoc and react if a class implementing the >> interface use getter / setter ? >> >> package interfaces { >> import foo.Qux; >> >> public interface IImport { >> function get qux():Qux; >> function set qux(value:Qux):void; >> } >> } >> >> >> Emitted to: >> >> /** >> * interfaces.IImport >> * >> * @fileoverview >> * >> * @suppress {checkTypes} >> */ >> >> goog.provide('interfaces_IImport'); >> >> /** >> * @interface >> */ >> interfaces_IImport = function() {}; >> interfaces_IImport.prototype.qux; >> >> >> /** >> * Metadata >> * >> * @type {Object.<string, Array.<Object>>} >> */ >> interfaces_IImport.prototype.FLEXJS_CLASS_INFO = { names: [{ name: >> 'IImport', qName: 'interfaces_IImport'}] }; >> >> Thanks, >> Frédéric THOMAS > > > > > -- > Ix Multimedia Software > > Jan Luykenstraat 27 > 3521 VB Utrecht > > T. 06-51952295 > I. www.ixsoftware.nl