fqner

package
v0.0.0-...-e49a3f0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindFullyQualifiedName

func FindFullyQualifiedName(root *ast.Root, name ast.Vertex) (*index.INode, bool)

func FullyQualifyName

func FullyQualifyName(root *ast.Root, name ast.Vertex) *fqn.FQN

func NeedsUseStmtFor

func NeedsUseStmtFor(pos *position.Position, name *fqn.FQN) bool

Returns whether the file at given pos needs a use statement for the given fqn.

Types

type FullyQualifier

type FullyQualifier struct {
	// contains filtered or unexported fields
}

func New

func New(rooter rooter, node ast.Vertex) *FullyQualifier

func NewFromFQN

func NewFromFQN(v *fqn.FQN) *FullyQualifier

func (*FullyQualifier) GetFQN

func (f *FullyQualifier) GetFQN() *fqn.FQN

Jump to

Keyboard shortcuts

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