astdata

package
v0.0.0-...-a214d60 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package astdata 提供抽象语法树共用的API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate_method_symbol

func Generate_method_symbol(typ string, funcname string) string

Types

type NameAndType

type NameAndType struct {
	Type Typ
	Name string
}

NameAndType 名字和类型

func NewNameAndType

func NewNameAndType(Name string, Type Typ) NameAndType

NewNameAndType 创建一个名字和类型

type Parame

type Parame = NameAndType

Parame 函数参数 缩写:parameter缩写成Parame

type RetValue

type RetValue = NameAndType

RetValue 函数返回值 缩写:ReturnValue缩写成RetValue

type Typ

type Typ interface {
	SetTyp()
	Typ() string
	Copy() Typ
	SetLea(i int)
}

Typ 能表示类型的抽象语法树节点

Jump to

Keyboard shortcuts

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