posmap

package
v1.44.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder[NodeLike ast.Node] struct {
	// contains filtered or unexported fields
}

func (*Builder[NodeLike]) Add

func (b *Builder[NodeLike]) Add(nodes ...NodeLike) *Builder[NodeLike]

func (*Builder[NodeLike]) Build

func (b *Builder[NodeLike]) Build() Map[NodeLike]

type Map

type Map[NodeLike ast.Node] struct {
	// contains filtered or unexported fields
}

func Build

func Build[NodeLike ast.Node](nodes ...NodeLike) Map[NodeLike]

func (Map[NodeLike]) All

func (m Map[NodeLike]) All() []NodeLike

func (Map[NodeLike]) Containing

func (m Map[NodeLike]) Containing(node ast.Node) option.Option[NodeLike]

func (Map[NodeLike]) Within

func (m Map[NodeLike]) Within(node ast.Node) []NodeLike

Jump to

Keyboard shortcuts

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