analyzer

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package analyzer implements source code static semantic analysis. It's important to keep errors as human-readable as possible because they are what end-user is facing when something goes wrong.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCompilerVersion = errors.New("incompatible compiler version")
)
View Source
var (
	ErrComplexLiteralSender = errors.New("literal network sender must have primitive type")
)
View Source
var (
	ErrConstSeveralValues = errors.New("Constant cannot have several values at once")
)
View Source
var (
	ErrInterfaceTypeParams = errors.New("Cannot resolve interface type parameters")
)

Functions

This section is empty.

Types

type Analyzer

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

func MustNew

func MustNew(resolver ts.Resolver) Analyzer

func (Analyzer) AnalyzeBuild

func (a Analyzer) AnalyzeBuild(build src.Build) (src.Build, *compiler.Error)

func (Analyzer) AnalyzeExecutableBuild

func (a Analyzer) AnalyzeExecutableBuild(build src.Build, mainPkgName string) (src.Build, *compiler.Error)

Jump to

Keyboard shortcuts

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