1. 30 Mar, 2021 2 commits
  2. 29 Mar, 2021 2 commits
  3. 22 Mar, 2021 2 commits
  4. 14 Mar, 2021 4 commits
  5. 03 Mar, 2021 1 commit
    • Hugo Moreau's avatar
      Global: treat global before local · bb119a54
      Hugo Moreau authored
      In order to avoid conflict with global variables defined after assigning
      to it, LocalVariableAssignments has been corrected.
      
       * main.go,
         transform/localvariableassignments.go : Here.
      bb119a54
  6. 02 Mar, 2021 2 commits
  7. 01 Mar, 2021 5 commits
  8. 24 Feb, 2021 1 commit
  9. 21 Feb, 2021 3 commits
    • Hugo Moreau's avatar
      blackbox import structs only if global var · 982fc5eb
      Hugo Moreau authored
      The blackbox package now import structs only if the blackboxed contains
      global variables, it was importing it everytime before.
      
       * main.go,
         transform/blackbox.go : Here.
      982fc5eb
    • Hugo Moreau's avatar
      blackboxing more than expected · 57546050
      Hugo Moreau authored
      it appeared that not blackbox function call were modified anyway. It is
      now fixed.
      
       * tools/blackbox.go : Here.
      57546050
    • Hugo Moreau's avatar
      Blackbox using state vector · c2227c10
      Hugo Moreau authored
      Blackboxed functions are now able to handle global variables, by using
      G2PState as a reference.
      
       * main.go,
         tools/blackbox.go,
         transform/checktype.go, transform/global.go,
         transform/globaltostate.go, transform/localvariableassignments.go,
         transform/postglobal.go : Here.
      c2227c10
  10. 20 Feb, 2021 1 commit
    • Hugo Moreau's avatar
      G2P type in a dedicated package · a8cafbfd
      Hugo Moreau authored
      For future global variable access via `Blackbox`, all type generated by
      Go2Pins are now stored in a dedicated package `structs`.
      All convenient modifications has been done to let Go2Pins in a valid
      state.
      
       * boilerplate/Makefile, boilerplate/main.go,
         boilerplate/structs/structs.go,
         decl/decl.go,
         main.go,
         tools/blackbox.go,
         transform/meta.go : Here.
      a8cafbfd
  11. 17 Feb, 2021 1 commit
  12. 15 Feb, 2021 6 commits
    • Hugo Moreau's avatar
      global: detecting global var before transform · 77a8448d
      Hugo Moreau authored
      Global var can be placed in all the file and not necessarily before its
      actual using. So it is now detected before applying the transform.
      
       * main.go,
         transform/global.go,
         transform/preglobal.go : Here.
      77a8448d
    • Hugo Moreau's avatar
      global: added some tests · 48c998ec
      Hugo Moreau authored
      Currently all tests are passing, except `after.go`, we can create global
      variable everywhere in the file, patch will come soon.
      
       * tests/global/ : Here.
      48c998ec
    • Hugo Moreau's avatar
      global: deleted global2 global3 · 6fe62c10
      Hugo Moreau authored
       * tranform/global2.go,
         tranform/global3.go : Here.
      6fe62c10
    • Hugo Moreau's avatar
      global: refactor of the Transform · e3b98749
      Hugo Moreau authored
      In order to have a cleaner code and a better readibility, code has been
      refactored and documented. It has been explicit name accordingly on
      the moment it is summoned.
      transform/global.go now handle both Getter and Setter configuration.
      transform/postglobal.go handle injecting Getter and Setter definition in
      ast.
      
       * main.go,
         transform/global.go,
         transform/postglobal.go : Here.
      e3b98749
    • Hugo Moreau's avatar
      global: fix when local and global has same id · c72092a2
      Hugo Moreau authored
      In the second pass, local var with same name as global var was always
      considerated as global. Not anymore.
      
       * transform/global2.go : Here.
      c72092a2
    • Hugo Moreau's avatar
      global3.go: typo fix · ef7744c3
      Hugo Moreau authored
      ef7744c3
  13. 14 Feb, 2021 3 commits
  14. 12 Feb, 2021 4 commits
  15. 11 Feb, 2021 3 commits