javascript

package
v0.0.0-...-991aaec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(inputFile string, pkgName *string, types *[]*ast.TypeSpec) (err error)

Parse reads a JS file and extracts class definitions as Go AST TypeSpecs. It relies on the constructor initializing fields to infer types. It prioritizes trailing comments for type definition (e.g., // map[string]int).

Types

type Generator

type Generator struct {
	*common.Context
	// contains filtered or unexported fields
}

func New

func New(ctx *common.Context) *Generator

func (*Generator) Generate

func (g *Generator) Generate() (err error)

func (*Generator) Tests

func (g *Generator) Tests()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL