typecheck

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Block

func Block(b *ast.BlockStmt, args any) diag.Diagnostics

func TryUnwrapBlockAttr

func TryUnwrapBlockAttr(b *ast.BlockStmt, name string, kind reflect.Kind) (syntax.Value, bool)

TryUnwrapBlockAttr tries to unwrap the attribute value. If the attribute are not found or cannot be unwrapped the second return argument is set to false.

func UnwrapBlockAttr

func UnwrapBlockAttr(b *ast.BlockStmt, name string, defaultValue syntax.Value) syntax.Value

UnwrapBlockAttr tries to unwrap the attribute value. If the attribute are not found or cannot be unwraped defaultValue it returned. The value returned is guaranteed to be of the same kind as defaultValue.

Types

This section is empty.

Jump to

Keyboard shortcuts

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