circularRefDetector

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExtraMarker = extraMarker{}

Marker to identify circular access diagnostic. Identifies the diagnostic that will be extended with the backtrace.

Functions

func Add

func Add[T any](ptr *T, refRange *hcl.Range)

Adds pointer to circular reference detection. refRange is optional.

func Check

func Check[T any](ptr *T) bool

Checks if the passed in ptr was added previously.

func Remove

func Remove[T any](ptr *T, diags *diagnostics.Diag)

Removes pointer from circular reference detection and appends the backtrace to the diagnostic marked by ExtraMarker (if it exists).

Types

This section is empty.

Jump to

Keyboard shortcuts

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