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
import (
"fmt"
"go/ast"
"go/parser"
"go/token"
"os"
......@@ -73,6 +74,9 @@ func (cmd *listCmd) Run(ctx *context) error {
}
fmt.Println()
}
if ctx.Verbose {
ast.Print(fset, p)
}
}
return nil
......
......@@ -164,7 +164,7 @@ func nativeScriptInit{{ $className }}() {
}
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) {}
{{ 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