Daniel Mathiot
19d5cd8c01
Add global recursive option for nodes
2021-09-29 15:02:15 +02:00
Daniel Mathiot
7b8631697d
(lua) Fix nested functions sometimes not being found
2021-09-12 17:45:36 +02:00
Daniel Mathiot
9dd01fbab8
(lua) Recursive find of function instead of fixed
2021-08-31 12:11:04 +02:00
Daniel Mathiot
518515be3e
(lua) Add ldoc annotation convention
2021-08-29 18:43:11 +02:00
Daniel Mathiot
1d97f1415e
Add default value for template
2021-08-27 21:19:19 +02:00
Daniel Mathiot
2c9936781f
Add multiple cursor positioning to template
2021-08-27 20:23:48 +02:00
Daniel Mathiot
fddd50553e
(lua) types are now guessed for type annotations
...
This made me to do small adjustments to the tree extractor, and it now
can retrieve fixed positions from the tree. If no node_type name is
specified, it will put all nodes fetched from fixed positions to ["_"]
= values
2021-08-26 12:28:46 +02:00
Daniel Mathiot
48f8f4dd65
(lua) Full specs for type annotations
2021-08-26 11:03:41 +02:00
Daniel Mathiot
a8954178da
(lua) add type annotation for variables
2021-08-25 14:13:32 +02:00
Daniel Mathiot
1002ae5948
Add support for multiple types, see Readme:Usage
2021-08-25 13:39:55 +02:00
Daniel Mathiot
ce765cc43c
(lua) Add support for returns in local_functions
...
The extractor function being the same, I refactored the lua config file
a little bit
2021-08-25 12:22:36 +02:00
Daniel Mathiot
b58292f71f
Add default comments when no results (python, lua)
2021-08-24 17:06:32 +02:00
Daniel Mathiot
77515a574d
Refactor to a simpler tree parsing
...
You can now parse the syntax tree more efficiently with the new
utilities functions.
For examples, please check out the lua and python configurations
2021-08-24 09:41:15 +02:00
Daniel Mathiot
52128c1bd5
Add utilities
...
After a refactoring of utilities, I added a function to get the first
child node that matches the node name.
Documentation is provided in neogen.utilities.nodes
2021-08-23 16:00:43 +02:00
Daniel Mathiot
2eb4f76cc9
Make template.annotation_convention a standard
...
The default generator will now use the annotation_convention field in
template in order to use the requested template
2021-08-23 11:33:08 +02:00
Daniel Mathiot
dd54ea7708
Specify template convention in lua
2021-08-23 10:51:29 +02:00
Daniel Mathiot
ec09985e9d
Add return statement for lua
...
At the moment, it only extracts return statements from direct children
of the function_definition
2021-08-21 18:05:03 +02:00
Daniel Mathiot
ebeb5aa329
Refactor
...
More documentation, changed function signature
2021-08-21 16:47:49 +02:00
Daniel Mathiot
f42e14f633
Add documentation
...
Added docs in multiple places, refactored some functions and changed
places.
2021-08-21 07:31:57 +02:00
Daniel Mathiot
c4f3725af7
Refactor
...
This is a first iteration of refactoring the codebase, and generating
annotations along the way.
Added "variable_declaration" as parent node for lua
2021-08-19 22:42:57 +02:00