Support generating bindings by name

This commit is contained in:
Lea Anthony
2023-12-19 21:28:23 +11:00
parent 51afac4f22
commit 472288b2e3
16 changed files with 359 additions and 128 deletions
+5 -1
View File
@@ -25,6 +25,7 @@ func TestParseFunction(t *testing.T) {
"main": {
"GreetService": {
{
Package: "main",
Name: "Greet",
DocComment: "Greet someone",
Inputs: []*Parameter{
@@ -59,6 +60,7 @@ func TestParseFunction(t *testing.T) {
"main": {
"GreetService": {
{
Package: "main",
Name: "Greet",
DocComment: "Greet does XYZ",
Inputs: []*Parameter{
@@ -82,6 +84,7 @@ func TestParseFunction(t *testing.T) {
ID: 1411160069,
},
{
Package: "main",
Name: "NewPerson",
DocComment: "NewPerson creates a new person",
Inputs: []*Parameter{
@@ -111,7 +114,8 @@ func TestParseFunction(t *testing.T) {
"github.com/wailsapp/wails/v3/internal/parser/testdata/variable_single_from_other_function/services": {
"OtherService": {
{
Name: "Yay",
Package: "github.com/wailsapp/wails/v3/internal/parser/testdata/variable_single_from_other_function/services",
Name: "Yay",
Outputs: []*Parameter{
{
Type: &ParameterType{