Documentation ¶
Index ¶
- func FindStructMembers(topLevelTypes []*types.Type) ([]*types.Type, error)
- func LoadStarlarkGenTypes(pkg string) (*types.Package, []*types.Type, error)
- func OpenOutputFile(outDir string) (io.Writer, error)
- func WritePreamble(pkg *types.Package, w io.Writer) error
- func WriteStarlarkFunction(t *types.Type, pkg *types.Package, w io.Writer) error
- func WriteStarlarkMemberClass(t *types.Type, pkg *types.Package, w io.Writer) error
- func WriteStarlarkMemberFunction(t *types.Type, pkg *types.Package, w io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindStructMembers ¶
Find all the member types that need custom unpackers.
func LoadStarlarkGenTypes ¶
Find all top-level types with the tilt:starlark-gen=true tag.
func WritePreamble ¶
Writes the package header.
func WriteStarlarkFunction ¶
Given a gengo Type, create a starlark function that reads that type.
func WriteStarlarkMemberClass ¶
Given a gengo member Type, generate the class for that type. This needs to appear before any functions that use the class, due to how Python type resolution works.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.