ast

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MPL-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotation

type Annotation struct {
	Name  string
	Value string
}

Annotation 注释中的注解

type Function

type Function struct {
	Receiver      string
	Function      string
	Annotations   map[string]*Annotation // annotationName->*AstAnnotation
	PlainComments []string               // 去除注解后的注释
}

func InspectFunction

func InspectFunction(srcPath string, fnParams, fnResults []string, annotationPrefix string) ([]*Function, error)

InspectFunction 从源代码目录中获取fnParams和fnResults匹配的函数的信息,并解析函数对应的注解 handlerName=>*moduleInfo

Jump to

Keyboard shortcuts

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