identlist

package
v0.0.5-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package identlist keeps track of a list of identifiers while traversing to the AST

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentList

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

IdentList list of identifiers

func New

func New(i *ast.Ident) IdentList

New creates new idnetlist

func (*IdentList) Add

func (l *IdentList) Add(i *ast.Ident)

Add adds new identifier to the list

func (*IdentList) Current

func (l *IdentList) Current() *ast.Ident

Current retrieve current

func (*IdentList) Previous

func (l *IdentList) Previous() *ast.Ident

Previous retrieve last identifier

type Item

type Item struct {
	Prev *Item
	I    *ast.Ident
}

Item item in the list

Jump to

Keyboard shortcuts

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