groovy

package
v0.71.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Kind     string `json:"kind"`
	Text     string `json:"text,omitempty"`
	Line     int    `json:"line"`
	Column   int    `json:"column"`
	Children []Node `json:"children,omitempty"`
}

Node represents a Jenkins Groovy concrete syntax tree node. Interior nodes may have children, while token nodes have text. Locations are one-based.

type Parser

type Parser struct{}

Parser parses Groovy source using the Groovy 2.4 syntax supported by Jenkins.

func (*Parser) Unmarshal

func (p *Parser) Unmarshal(b []byte, v any) error

Unmarshal converts Groovy source into a JSON-compatible concrete syntax tree.

Jump to

Keyboard shortcuts

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