summary refs log tree commit diff stats
path: root/tests/vm/tnimnode.nim
Commit message (Collapse)AuthorAgeFilesLines
* Improve dumpLisp macro (#9515)Kaushal Modi2018-10-271-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Improve dumpLisp macro - Remove commas from the lisp representation of the AST. - Make the dumpLisp output "pretty" and indented. - Improve docs of `dumpTree` and `dumpLisp` macros. With: dumpLisp: echo "Hello, World!" Output before this commit: StmtList(Command(Ident("echo"), StrLit("Hello, World!"))) Output after this commit: (StmtList (Command (Ident "echo") (StrLit "Hello, World!"))) * Re-use the traverse proc inside treeRepr for lispRepr too - Add module-local `treeTraverse` proc. - Also fix treeRepr/dumpTree not printing nnkCommentStmt node contents. * More doc string updates * Allow unindented lispRepr output for tests * Update a test affected by the lispRepr change * Fix dumpTree * Add note about lispRepr and dumpLisp to changelog [ci skip]
* Adjust some tests to make them passLemonBoy2018-06-251-11/+9
| | | | | | The non-scoped behaviour of static blocks was exploited by those tests, replace all the variables declared whithin one with compileTime marked ones.
* Get symbol kind (#7491)Arne Döring2018-04-111-6/+6
|
* Fixes #7473 (#7475)Arne Döring2018-04-041-6/+6
| | | | | * removed code duplication * changelog entry, adopt tests for changes
* make tests green againAndreas Rumpf2017-11-191-6/+6
|
* make tests green againAndreas Rumpf2017-09-261-9/+9
|
* Creating and setting comment nodes in macros (#5850)Fredrik Høisæther Rasch2017-05-311-0/+8
| | | | | | | * strVal assingnable comment statement ast nodes * Set comment instead of strVal for comment nodes * Added test code for creating and setting comment nodes * Modified the AST spec documentation for documentation comments
* fix seq add for nim node in VM (#5253)Arne Döring2017-01-191-2/+7
| | | fixes #4821
* make quote ast a ref type (#5246)Arne Döring2017-01-191-0/+69
* make quote ast a ref type * recursive set flag isRef for quoted ast