Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ease-dev] Specifying the method return type

Ok, here's how to structure it:

// @type FooBar.Wrappers.TrackWrapper
var existing = layers.findTrack("ship");

By preceding the declaration of a new object with a single-line
comment detailing the fully qualified name for that object, you can
inform the editor of the type of the object, and you will gain
<ctrl-space> content assist for that object from there on.



On Tue, 23 Oct 2018 at 18:21, Ian Mayo <ian@xxxxxxxxxxxxxx> wrote:
>
> Christian demonstrated, in JS, how the JS editor can be informed about
> the type of an element retrieved from Java by providing the data type
> in a specially formatted "// type" comment on the preceding line.
>
> Sadly I can't find an example of this in use, despite wading through
> the EASE sample scripts folders.
>
> Can anybody point me towards (or provide me with) and example?
>
> Thanks,
> Ian



-- 
Ian Mayo
Deep Blue C Technology Ltd
- New technologies, implemented well


Back to the top