swift

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 5 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 {
	Report  analyzer.Report
	Files   map[string]string
	BaseDir string
}

Generator handles Swift code generation

func New

func New(report analyzer.Report) *Generator

New creates a new Swift code generator

func (*Generator) Generate

func (g *Generator) Generate() (string, error)

Generate generates Swift code for all transactions and scripts

func (*Generator) SetBaseDir

func (g *Generator) SetBaseDir(dir string)

SetBaseDir sets the base directory for reading files

type SwiftCase

type SwiftCase struct {
	Name       string
	Parameters []SwiftParameter
	ReturnType string
	Base64     string
	Type       string
}

SwiftCase represents a case in the generated enum

type SwiftField

type SwiftField struct {
	Name     string
	Type     string
	Optional bool
}

SwiftField represents a field in a Swift struct

type SwiftParameter

type SwiftParameter struct {
	Name     string
	Type     string
	Optional bool
}

SwiftParameter represents a parameter in Swift

type SwiftStruct

type SwiftStruct struct {
	Name       string
	Fields     []SwiftField
	Implements []string
}

SwiftStruct represents a struct in Swift

Jump to

Keyboard shortcuts

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