syntax

package
v0.0.0-...-dcf95d8 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const XgoTrapPrefix = "__xgo_trap_"

check instrument/instrument_reg/signature.go for signature func(info interface{}, recvPtr interface{}, args []interface{}, results []interface{}) (func(), bool)

Variables

View Source
var AbsFilename func(name string) string // only set under go1.18, will be nil for >= go1.18
View Source
var TrimFilename func(b *syntax.PosBase) string // will be set >= go1.18

Functions

func AfterFilesParsed

func AfterFilesParsed(syntaxFiles []*syntax.File, addFile func(name string, r io.Reader) *syntax.File)

Types

type File

type File struct {
	Name    string
	Syntax  *syntax.File
	Index   int
	AbsPath string
}

type ISetPos

type ISetPos interface {
	SetPos(p syntax.Pos)
}

Jump to

Keyboard shortcuts

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