Is it possible to get import and package data from source?
Is it possible to get import and package data from source? It's needed to make moonscript import system.
Sorry, as far as I can tell, the import data is not provided in the Haxe AST.
For Reflaxe/C++, I create an array for each class and every time a type is used, I add it to the array. Then I generate the imports for all those types. I could probably add a utility in Reflaxe to iterate through the AST and generate these automatically, but at the current moment such a feature does not exist. Sorry!!
Can you realize this feature and implement additional one, is possibility to get the parent of the current Ast node?
Sorry, as far as I can tell, the import data is not provided in the Haxe AST.
For Reflaxe/C++, I create an array for each class and every time a type is used, I add it to the array. Then I generate the imports for all those types. I could probably add a utility in Reflaxe to iterate through the AST and generate these automatically, but at the current moment such a feature does not exist. Sorry!!
look above