Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #262: function with anonymous array args #263

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

akavel
Copy link

@akavel akavel commented Dec 18, 2020

Fix issue #262 - function with unnamed array-typed args:

void issue262_a(int[2]);
void issue262_b(int[]);

Stringify TSNode by default as a parenthesized LISP-like S-expression.
@akavel akavel changed the title Fix #262 Fix #262: function with anonymous array args Dec 18, 2020
@@ -30,6 +30,9 @@ template withCodeAst*(code: string, mode: string, body: untyped): untyped =
defer:
tree.tsTreeDelete()

proc `$`*(node: TSNode): string =
$node.tsNodeString()

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you using this anywhere?

@genotrance
Copy link
Collaborator

Does this work for multi-dimensional arrays as well? How about with pointers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants