ast

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SubModMapping = map[string]SubstitutionModifier{
	"unsafe": SubModUnsafe,
}

Functions

This section is empty.

Types

type ConditionalNode

type ConditionalNode struct {
	Pos
	Expression string
	ChildNodes []Node
	Else       *ConditionalNode
}

type FuncDeclNode

type FuncDeclNode struct {
	Pos
	Signature  string
	Identifier string
	ChildNodes []Node
}

type ImportNode

type ImportNode struct {
	Pos
	Alias      string
	ImportPath string
}

type LoopNode

type LoopNode struct {
	Pos
	LoopExpression string
	ChildNodes     []Node
}

type Node

type Node any

type PlaintextNode

type PlaintextNode struct {
	Pos
	Plaintext string
}

type Pos

type Pos int64

type RawCodeNode

type RawCodeNode struct {
	Pos
	GoCode string
}

type SubstitutionModifier added in v0.2.0

type SubstitutionModifier uint
const SubModNone SubstitutionModifier = 0
const (
	SubModUnsafe SubstitutionModifier = 1 << iota
)

func (SubstitutionModifier) Includes added in v0.2.0

type SubstitutionNode

type SubstitutionNode struct {
	Pos
	Expression string
	Modifier   SubstitutionModifier
}

type TemplateFile

type TemplateFile struct {
	Filepath string
	Nodes    []Node
}

Jump to

Keyboard shortcuts

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