typescript

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(program *ir.Program) string

func GenerateProject added in v0.2.0

func GenerateProject(programs []*ir.Program) ([]string, error)

Types

type SuspensionPlan added in v0.2.0

type SuspensionPlan struct {
	Methods          map[*ir.Method]bool
	Calls            map[*ir.Call]bool
	Expressions      map[ir.Expression]bool
	Iterations       map[*ir.Iterate]bool
	StructuredBlocks map[*ir.StructuredBlock]bool
}

SuspensionPlan is backend-owned analysis data. It deliberately does not make suspension part of TypeRB syntax, checking, or shared semantics. TypeScript generation uses it to preserve sequential TypeRB evaluation over Promise-based native APIs.

func AnalyzeSuspension added in v0.2.0

func AnalyzeSuspension(programs []*ir.Program) (*SuspensionPlan, error)

Jump to

Keyboard shortcuts

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