translate

package
v0.0.0-...-ffd3a61 Latest Latest
Warning

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

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

Documentation

Overview

Code generated by gensyscall. DO NOT EDIT.

Code generated by gensyscall. DO NOT EDIT.

Index

Constants

View Source
const (
	PackageKindTestBinary = "testbinary"
	PackageKindBase       = "base"
	PackageKindForTest    = "fortest"
	PackageKindTests      = "tests"
)

Variables

View Source
var PublicExportHacks = map[string][]string{
	"encoding/binary":                  {"littleEndian"},
	"internal/poll":                    {"errNetClosing"},
	"github.com/golang/protobuf/proto": {"enumsByName"},
}
View Source
var TranslatedRuntimePackages = []string{
	hooksGo123Package,
	reflectPackage,
	simulationPackage,
	testingPackage,
}

Functions

func RewriteSelector

func RewriteSelector(pkg, selector string) string

RewriteSelector rewrites internal/bytealg.Equal to InternalBytealg_Equal

func Translate

func Translate(input *TranslateInput) (*gosimtool.TranslateOutput, error)

Types

type ChanType

type ChanType struct {
	Type  *types.Chan
	Named types.Type
}

type GlobalInfo

type GlobalInfo struct {
	ByPackage map[string]*PackageGlobalInfo
}

type Hash

type Hash [32]byte

type Hasher

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

func NewHasher

func NewHasher() *Hasher

func (*Hasher) Sum256

func (h *Hasher) Sum256() Hash

type MapType

type MapType struct {
	Type  *types.Map
	Named types.Type
}

type PackageGlobalInfo

type PackageGlobalInfo struct {
	Container   map[string]string
	ShouldShare map[string]bool
	Rewritten   map[string]string
}

type TranslateInput

type TranslateInput struct {
	Packages []string
	Cfg      gosimtool.BuildConfig
}

type TranslatePackageResult

type TranslatePackageResult struct {
	PackageName     string
	PackagePath     string
	CollectedTests  []packageSelector
	GlobalInfo      *PackageGlobalInfo
	TranslatedFiles map[string][]byte
}

exported for gob (?)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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