formatter

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package formatter renders syntax-valid Neva source into its canonical layout.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(source []byte) ([]byte, *compiler.Error)

Format parses and formats one Neva source file. Invalid source is never formatted; the returned compiler error contains the parser diagnostic.

func FormatParsed

func FormatParsed(parsed parser.ParsedSource) []byte

FormatParsed renders syntax-valid parsed source. It has no dependency on module resolution, analysis, desugaring, or code generation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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