ast

package
v0.29.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRuleDetail

func GetRuleDetail(rule *ast.Rule, builtins map[string]*ast.Builtin) string

GetRuleDetail returns a short descriptive string value for a given rule stating if the rule is constant, multi-value, single-value etc and the type of the rule's value if known.

func IsConstant

func IsConstant(rule *ast.Rule) bool

IsConstant returns true if the rule is a "constant" rule, i.e. one without conditions and scalar value in the head.

func RefToString

func RefToString(ref ast.Ref) string

RefToString converts an ast.Ref to a readable string, e.g. data.foo[bar].

Types

This section is empty.

Jump to

Keyboard shortcuts

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