analyze

package
v0.70.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package analyze provides static checks for compiled Vibescript programs. It walks the internal AST and reports issues such as unreachable statements following a terminator.

The package is internal because it depends on the AST shape. The vibes command exposes the same behavior via "vibes analyze".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Warning

type Warning struct {
	Function string
	Pos      source.Position
	Message  string
}

Warning describes a single issue surfaced by the analyzer.

func Script

func Script(script *runtime.Script) []Warning

Script returns warnings collected from the given compiled script. The returned slice is sorted by position then function name for deterministic output.

Jump to

Keyboard shortcuts

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