preprocess

package
v1.8.21 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandCompactSyntaxWithState

func ExpandCompactSyntaxWithState(parsed *parser.CompactFile, tree *walk.CompactModel, fileID uint32, initial *State, imports map[int]*State) (CompactResult, *State)

func ExpandCompactWithState

func ExpandCompactWithState(parsed *parser.File, tree *walk.Model, fileID uint32, initial *State, imports map[int]*State) (CompactResult, *State)

func ExpandWithState

func ExpandWithState(parsed *parser.File, tree *walk.Model, fileID uint32, initial *State, imports map[int]*State) (Result, *State)

Types

type CompactResult

type CompactResult struct {
	Source   []byte
	Parsed   *parser.CompactFile
	Complete bool
	Changed  bool
}

type Result

type Result struct {
	Source   []byte
	Parsed   *parser.File
	Complete bool
	Changed  bool
}

func Expand

func Expand(parsed *parser.File, tree *walk.Model, fileID uint32) Result

type State

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

func (*State) ExpandIdentifier added in v1.0.5

func (s *State) ExpandIdentifier(name string) (string, bool)

ExpandIdentifier expands an object-like macro without changing the state.

func (*State) TagAliases added in v1.7.35

func (s *State) TagAliases() map[string]string

Jump to

Keyboard shortcuts

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