transpiler

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func New

func New(flag *framework.Flag, log log.Log, module *gomod.Module, parser *parser.Parser) *Generator

New transpiler generator

func (*Generator) GenerateFile

func (g *Generator) GenerateFile(fsys genfs.FS, file *genfs.File) error

func (*Generator) Load

func (g *Generator) Load(fsys fs.FS) (*State, error)

type Method

type Method struct {
	Pascal string // Method name in pascal
	From   string // From extension
	To     string // To extension
}

type State

type State struct {
	Imports     []*imports.Import
	Transpilers []*Transpiler
}

type Transpiler

type Transpiler struct {
	Import  *imports.Import
	Camel   string
	Methods []*Method
}

Jump to

Keyboard shortcuts

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