declarations

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decl

type Decl struct {
	Line      int
	Column    int
	Name      any
	Comments  []string
	FileName  string
	Directory string
}

func Sort

func Sort(decls []*Decl) []*Decl

type Declarations

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

func New

func New(sortedDecls []*Decl) *Declarations

func (*Declarations) DeclByPosition

func (declarations *Declarations) DeclByPosition(startLine, startCol int) any

Jump to

Keyboard shortcuts

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