wails/v3/internal/generator
Fabio Massaioli 801acd01df
fix(v3/generator): binding generation for cross-package type aliases (#4948)
* Add test case for aliases of imported types

* Replace `typeutil.Map` with object-keyed map in `addTypeImpl` method

* Replace `typeutil.Map` with object-keyed map in `needsCreateImpl` method

* Update UNRELEASED_CHANGELOG.md

* Update binding generator test data

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2026-02-04 07:05:04 +11:00
..
collect fix(v3/generator): binding generation for cross-package type aliases (#4948) 2026-02-04 07:05:04 +11:00
config fix(generator): prevent warnings from triggering GitHub Actions errors 2025-12-07 20:53:43 +11:00
render fix(v3/generator): binding generation for cross-package type aliases (#4948) 2026-02-04 07:05:04 +11:00
testcases fix(v3/generator): binding generation for cross-package type aliases (#4948) 2026-02-04 07:05:04 +11:00
testdata fix(v3/generator): binding generation for cross-package type aliases (#4948) 2026-02-04 07:05:04 +11:00
.gitignore [v3] Fix binding generator bugs and prepare for Go 1.24 (#4045) 2025-02-09 09:44:34 +11:00
analyse.go [v3] Typed Events, revisited (#4633) 2025-11-11 20:25:57 +11:00
analyse_test.go [v3] Typed Events, revisited (#4633) 2025-11-11 20:25:57 +11:00
constants.go [v3] New binding generator (#3468) 2024-05-19 20:40:44 +10:00
constants_test.go [v3] New binding generator (#3468) 2024-05-19 20:40:44 +10:00
errors.go [v3] Typed Events, revisited (#4633) 2025-11-11 20:25:57 +11:00
events.go [v3] Typed Events, revisited (#4633) 2025-11-11 20:25:57 +11:00
generate.go [v3] Typed Events, revisited (#4633) 2025-11-11 20:25:57 +11:00
generate_test.go fix(generator): suppress warning console output during tests 2025-12-07 21:41:14 +11:00
includes.go [v3] Fix binding generator bugs and prepare for Go 1.24 (#4045) 2025-02-09 09:44:34 +11:00
index.go [v3] Fix binding generator bugs and prepare for Go 1.24 (#4045) 2025-02-09 09:44:34 +11:00
load.go [v3] Typed Events, revisited (#4633) 2025-11-11 20:25:57 +11:00
models.go [v3] Fix binding generator bugs and prepare for Go 1.24 (#4045) 2025-02-09 09:44:34 +11:00
README.md [v3] New binding generator (#3468) 2024-05-19 20:40:44 +10:00
service.go [v3] Fix binding generator bugs and prepare for Go 1.24 (#4045) 2025-02-09 09:44:34 +11:00
Taskfile.yaml [v3] Fix binding generator bugs and prepare for Go 1.24 (#4045) 2025-02-09 09:44:34 +11:00

Generator

This package contains the static analyser used for parsing Wails projects so that we may:

  • Generate the bindings for the frontend
  • Generate Typescript definitions for the structs used by the bindings