jsGenerator

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LanguageName = gValues.LanguageJS
)

Variables

View Source
var (
	LanguageAliases = []string{
		"js",
		"javascript",
	}
)

Functions

func GenerateCode

func GenerateCode(options *gen.CodeGenerationOptions) (*gen.CodeGenerationResult, error)

Types

type CCLField

CCLField is a type alias for the field definition type from the CCL's internal packages.

type CCLModel

type CCLModel = cclValues.ModelDefinition

CCLModel is a type alias for the model definition type from the CCL's internal packages.

type JavaScriptGenerationContext

type JavaScriptGenerationContext struct {
	*gen.CodeGenerationBase

	// One builder per model class file (or single builder for single file mode)
	ModelClasses map[string]*codeBuilder.CodeBuilder

	// SingleFileBuilder is the builder used in single file mode
	SingleFileBuilder *codeBuilder.CodeBuilder

	// IsSingleFile indicates if we are generating a single file
	IsSingleFile bool

	// SingleFileName is the name of the single file to generate
	SingleFileName string
}

Jump to

Keyboard shortcuts

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