dstern95 / flashdevelop

Automatically exported from code.google.com/p/flashdevelop
1 stars 3 forks source link

Haxe Module Goto-Declaration #46

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Sometimes we have a module containing various declarations but none matching 
the module name.

Example : Common.hx
----
enum Ok { Yes; No; }
enum Result<T> { None; Some( v : T ); }
...
-----

Then in a haxe file we can do :

import Common;

or 

var v : Common.Result<String>;

In these cases, the "Goto Declaration" is not working. 
- When used on the import it should open the module Common.hx
- for the second it should be able to open the definition of Result within the 
Common module. 

Haxe enforces package names starting with a lowercase letter and types starting 
with an uppercase letter, which can be helpful to distinguish between these 
cases.

Original issue reported on code.google.com by ncanna...@gmail.com on 11 Sep 2012 at 9:51

GoogleCodeExporter commented 8 years ago

Original comment by philippe...@gmail.com on 21 Jul 2013 at 9:37