View unanswered posts | View active topics

Reply to topic  [ 4 posts ] 
Haxe 'Go to Declaration' feature request 
Author Message

Joined: Wed Apr 16, 2008 9:42 am
Posts: 88
First of all, Haxe support is becoming very good, the updates since 4.6 makes working with Haxe better and better. Many thanks for that!! ♥♥♥ :D

I would like to have this also working:

'Go to declaration' on functions / variables from 'using' - mixin.

'Go to declaration' doesn't always work when I have lots of, like this (while I get auto-completion)
import flambe.display.Sprite;
var sprite:Sprite = new Sprite();
// sprite.blendMode is a Enum, "equals" is a function of Enum
// 'Go to declaration' on equals does not work here


Wed May 07, 2014 8:49 am
Profile WWW

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Go to Declaration stops when FD isn't capable of figuring the types (also 'using' isn't resolved).

At this point, doing a better job depends on the Haxe compiler providing this functionality for FD - this is being worked on by the Haxe team.

Wed May 07, 2014 9:25 pm
Profile WWW

Joined: Thu Aug 29, 2013 4:06 pm
Posts: 13
I am not sure, but sometimes FD can provide completion (I use compilation server) but it can't "go to declaration". Doesn't providing completion means FD knows the type?

sprite.blendMode. // completion list include "equals()" here

but "go to declaration" on "equals" of sprite.blendMode.equals() won't bring me to the function declaration.

Tue Mar 31, 2015 3:18 am

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
No, with Haxe code completion is sometimes provided by the compiler itself and that doesn't tell FD (yet) where the declaration is.

Tue Apr 07, 2015 9:46 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.