Merge: astbuilder: First implementation of clonable for ast nodes
authorJean Privat <jean@pryen.org>
Mon, 16 Sep 2019 14:34:36 +0000 (10:34 -0400)
committerJean Privat <jean@pryen.org>
Mon, 16 Sep 2019 14:34:36 +0000 (10:34 -0400)
## Astbuilder

- Now all the nodes of the ast is cloneable. Currently just a part of node have an implemented clone method.If we clone a node by default (not implemented) the program abort and print the following message: `The clone method is not implemented for ATestNode class.`. Currently the library is in **test** phase. You can have "maybe" some bug with the clone.

- Add a method to make the creation of a callsite easier.

## Futur work

Currently i am working on a test to make sure the result clone is the same as the original.

Pull-Request: #2779
Reviewed-by: Jean Privat <jean@pryen.org>

1  2 
tests/niti.skip
tests/nitvm.skip

diff --combined tests/niti.skip
@@@ -5,7 -5,6 +5,7 @@@ nit_args
  nit_args5
  nit_args6
  nit_args8
 +nit_args9
  nitvm_args1
  nitvm_args3
  nitin
@@@ -46,3 -45,4 +46,4 @@@ test_cs
  repeating_key_xor_solve
  nitpm
  nitdoc
+ test_astbuilder
diff --combined tests/nitvm.skip
@@@ -5,7 -5,6 +5,7 @@@ nit_args
  nit_args5
  nit_args6
  nit_args8
 +nit_args9
  nitvm_args1
  nitvm_args3
  nitin
@@@ -49,3 -48,4 +49,4 @@@ base_notnull_lit_alt
  assertions
  nitpm
  nitdoc
+ test_astbuilder