Documentation ¶
Overview ¶
Package ident provides a identifier creator which enforces unique variable names within the same scope
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gen ¶
Gen IGen implementation, responsible for generating unique variable names
func (*Gen) CreateGlobal ¶
CreateGlobal creates new global scope identifier
type IGen ¶
type IGen interface { Create(i *ast.Ident) *ast.Ident CreateGlobal(i *ast.Ident) *ast.Ident ResetLocal() }
IGen variable generator interface
func NewGenWithGlobal ¶
NewGenWithGlobal creates a new variable generator from a global map
type Mock ¶
type Mock struct{}
Mock IGen mock
func (*Mock) CreateGlobal ¶
CreateGlobal mocks global creation
Click to show internal directories.
Click to hide internal directories.