name

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package name contains support functions for working with Name.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFreeName

func IsFreeName(n asyncpi.Name) bool

IsFreeName returns true if a given Name n is Free.

This is just a convenient wrapper for FreeNames(n) which return a slice.

func IsSame

func IsSame(m, n asyncpi.Name) bool

IsSame is the equality operator for Name.

A Name m equals another Name n if m and n has the same Ident. The comparison ignores the underlying represention (sortedname, typedname, etc.)

func MakeNamesUnique

func MakeNamesUnique(p asyncpi.Process) error

func Walk

func Walk(v Visitor, proc asyncpi.Process) error

Walk traverses a Process p in breadth-first order, and applies v.VisitName(n) on each Name n encountered.

Types

type Setter

type Setter interface {
	SetName(string)
}

type Visitor

type Visitor interface {
	VisitName(n asyncpi.Name) error
}

A Visitor's VisitName method is is invoked for each Name encounted by Walk.

Directories

Path Synopsis
Package sortedname provides a specialised Name implementation associating sorts with a Name.
Package sortedname provides a specialised Name implementation associating sorts with a Name.

Jump to

Keyboard shortcuts

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