types

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NameEmpty   = "empty"
	NameAnon    = "anon"
	NameError   = "error"
	NameStdLib  = "stdlib"
	NameGeneric = "generic"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IFace

type IFace struct {
	Name string // Interface name
	Type IType  // Type of the interface

	Pos      token.Pos // Token Position
	FuncName string    //
	OfType   string
}

func NewIssue

func NewIssue(name string, interfaceType IType) IFace

func (*IFace) Enrich

func (i *IFace) Enrich(f *ast.FuncDecl)

func (IFace) ExportDiagnostic

func (i IFace) ExportDiagnostic() analysis.Diagnostic

func (IFace) HashString

func (i IFace) HashString() string

func (IFace) String

func (i IFace) String() string

type IType

type IType uint8
const (
	EmptyInterface    IType = 1 << iota // ref as empty
	AnonInterface                       // ref as anon
	ErrorInterface                      // ref as error
	NamedInterface                      // ref as named
	NamedStdInterface                   // ref as named stdlib
	Generic                             // ref as generic type parameter
)

Jump to

Keyboard shortcuts

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