Commit 639962dd authored by Oscar Campos's avatar Oscar Campos Committed by Oscar Campos
Browse files

chore: changes into generate and list commands

parent 9a82e5c4
...@@ -17,6 +17,7 @@ package main ...@@ -17,6 +17,7 @@ package main
import ( import (
"fmt" "fmt"
"go/ast"
"go/parser" "go/parser"
"go/token" "go/token"
"os" "os"
...@@ -73,6 +74,9 @@ func (cmd *listCmd) Run(ctx *context) error { ...@@ -73,6 +74,9 @@ func (cmd *listCmd) Run(ctx *context) error {
} }
fmt.Println() fmt.Println()
} }
if ctx.Verbose {
ast.Print(fset, p)
}
} }
return nil return nil
......
...@@ -164,7 +164,7 @@ func nativeScriptInit{{ $className }}() { ...@@ -164,7 +164,7 @@ func nativeScriptInit{{ $className }}() {
} }
propertyField := reflect.ValueOf(reflect.ValueOf(class)).Elem().FieldByName(properties[i].GetName()) propertyField := reflect.ValueOf(reflect.ValueOf(class)).Elem().FieldByName(properties[i].GetName())
return gdnative.GoTypeToVariant(propertyField) return propertyField.Interface().(gdnative.Variant)
} }
getter.FreeFunc = func(methodData string) {} getter.FreeFunc = func(methodData string) {}
{{ if $class.Alias -}} {{ if $class.Alias -}}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment