scope

package
v0.0.0-...-5c65953 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasImport

func HasImport(s Scope, name string) bool

func InCurrent

func InCurrent(s Scope, identity *ast.Ident) bool

Types

type Scope

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

func Append

func Append(s Scope, identities ...*ast.Ident) Scope

func Copy

func Copy(s Scope) Scope

func FromFiles

func FromFiles(files []*ast.File) Scope

func New

func New() Scope

func NewInsideExisting

func NewInsideExisting(existing Scope) Scope

func WithImports

func WithImports(s Scope, imports []*ast.ImportSpec) Scope

Jump to

Keyboard shortcuts

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