typematch

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: BSD-3-Clause Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Itab *ImportsTab
}

type ImportsTab

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

func NewImportsTab

func NewImportsTab(initial map[string]string) *ImportsTab

func (*ImportsTab) EnterScope

func (itab *ImportsTab) EnterScope()

func (*ImportsTab) LeaveScope

func (itab *ImportsTab) LeaveScope()

func (*ImportsTab) Load

func (itab *ImportsTab) Load(pkgName, pkgPath string)

func (*ImportsTab) Lookup

func (itab *ImportsTab) Lookup(pkgName string) (string, bool)

type MatcherState added in v0.3.16

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

func NewMatcherState added in v0.3.16

func NewMatcherState() *MatcherState

type Pattern

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

func Parse

func Parse(ctx *Context, s string) (*Pattern, error)

func (*Pattern) MatchIdentical

func (p *Pattern) MatchIdentical(state *MatcherState, typ types.Type) bool

MatchIdentical returns true if the go typ matches pattern p.

Jump to

Keyboard shortcuts

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