31 Commits
Author SHA1 Message Date
45b2681dfc [v3] Fix binding generator output and import paths (#3334)
* Fix relative import path computation

* Fix models output path

* Add option to generate bindings using bundled runtime

* Update binding example

* Fix testdata

* Update changelog

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2024-03-22 21:18:04 +11:00
stffabi 4467a1ffa2 [parser] Move context tests into a separate file 2024-03-04 12:38:21 +01:00
stffabi bfe9a9d015 [runtime] Add cancelation of bound method calls and context passing 2024-03-04 10:34:14 +01:00
Lea Anthony b6dc199993 Update bindings tests 2024-01-07 20:11:34 +11:00
Lea Anthony d1255d3a9d Support TS bindings. Update tests. Tidy up. 2023-12-23 08:49:58 +11:00
Lea Anthony 2bb25b12ff Update bindings generator to generate bindings in packages and files.
Remove unused JavaScript files
Update tests.
Update v3 docs
2023-12-22 20:01:42 +11:00
Lea Anthony cdf4bdd2ba Support generating enums from imported package 2023-12-20 08:06:35 +11:00
Lea Anthony 472288b2e3 Support generating bindings by name 2023-12-19 21:28:23 +11:00
Lea Anthony 182f43004a Improved bindings generation: support JS Models. 2023-12-16 14:02:19 +11:00
Lea Anthony 984db8620a Support enums in interface generation 2023-12-12 22:25:51 +11:00
Lea Anthony 4b04c10f14 Support bindings, model & enum generation 2023-12-12 21:51:40 +11:00
Lea Anthony 075eb1fa3f Update parser and bindings generation
Update tests
2023-11-05 18:02:36 +11:00
Lea Anthony 013ec1d726 Fix compiler error. Add test. 2023-09-21 06:33:08 +10:00
Lea Anthony b925335bbb Fix tests 2023-09-08 14:37:07 +10:00
Lea Anthony 965f939967 Fix parser/generator tests 2023-09-08 12:03:55 +10:00
Adam TenderholtandLea Anthony 130fab6c01 Feature/v3 parser: expand TS model generation tests & some fixes (#2485)
* v3 parser: add tests for model generation

* v3 parser: use single quotes for got model.ts

* v3 parser: fixes for some failing tests

* v3 parser: misc simplification and cleanup

* v3 parser: fix model tests when no structs returned

* v3 parser: fix last failing test case

* Update contributors list

* v3 parser: update README

* Revert "Update contributors list"

This reverts commit f429d2ba890020d7ff0772e6207830508261b489.

* Changelog: add line about my contribution
2023-03-25 10:09:17 +11:00
Lea Anthony 7340247e25 Create bindings file per package
Improved bindings tests
2023-03-07 18:22:33 +11:00
Lea Anthony f1a7f1b781 Improved bindings generation 2023-03-06 20:54:04 +11:00
Lea Anthony 33855ff01d Add tests for bound structs returned by function calls. 2023-02-26 19:18:47 +11:00
Adam TenderholtandGitHub 0f80f031fd v3 parser: add some more test cases (functions) (#2422)
* [v3] add test case for parser (create struct from func)

* [v3] add another test case for parser (func in other pkg) + misc
2023-02-26 07:46:26 +11:00
Lea Anthony ecc1791420 Support bound variables (struct literals)
Factor out unaryexpression parsing
Fix package bleed between tests
2023-02-25 09:47:50 +11:00
Lea Anthony 4a8917ecbc Add nested anonymous struct test 2023-02-25 08:27:36 +11:00
Lea Anthony cc1a6a3d50 Support anonymous struct fields 2023-02-25 08:24:58 +11:00
Lea Anthony cd11c0a83c Support references to structs in other packages 2023-02-24 21:15:39 +11:00
Lea Anthony 6bfd654ec8 Tidy up. More tests. 2023-02-21 17:10:36 +11:00