desugarer

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Desugarer

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

Desugarer is NOT thread safe and must be used in single thread

func New added in v0.12.0

func New() Desugarer

func (*Desugarer) Desugar

func (d *Desugarer) Desugar(build src.Build) (src.Build, error)

type Scope added in v0.27.0

type Scope interface {
	Entity(ref core.EntityRef) (src.Entity, core.Location, error)
	Relocate(location core.Location) src.Scope
	Location() *core.Location
	GetFirstInportName(nodes map[string]src.Node, portAddr src.PortAddr) (string, error)
	GetFirstOutportName(nodes map[string]src.Node, portAddr src.PortAddr) (string, error)
}

Scope interface allows to use mocks in unit tests for private methods

Jump to

Keyboard shortcuts

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