parse

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module added in v0.9.0

func Module(filename, policy string) (*ast.Module, error)

Module works like ast.ParseModule but with the Regal parser options applied.

func MustParseModule

func MustParseModule(policy string) *ast.Module

MustParseModule works like ast.MustParseModule but with the Regal parser options applied.

func ParserOptions

func ParserOptions() ast.ParserOptions

ParserOptions provides the parse options necessary to include location data in AST results.

func PrepareAST added in v0.14.0

func PrepareAST(name string, content string, module *ast.Module) (map[string]any, error)

PrepareAST prepares the AST to be used as linter input.

Types

This section is empty.

Jump to

Keyboard shortcuts

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