analyzer

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 9 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.

This file contains the logic for analyzing network connections. Some methods here might look like they are related to senders or receivers specifically, but they are actually related to both, so they are placed here.

Index

Constants

This section is empty.

Variables

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