instr

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 24 Imported by: 0

README

ast遍历框架

封装go应用程序ast遍历逻辑

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileVisitor

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

func (*FileVisitor) Visit

func (f *FileVisitor) Visit(node ast.Node) ast.Visitor

func (*FileVisitor) WriteTo

func (f *FileVisitor) WriteTo(absPath string)

type Program

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

Program 封装程序信息,解析遍历程序的所有包、函数、代码块

func NewProgram

func NewProgram(mainPkgDir string, useRawSdk bool, conf *agent.Configuration) *Program

func (*Program) Destroy

func (p *Program) Destroy()

func (*Program) RollbackAll

func (p *Program) RollbackAll()

func (*Program) Visit

func (p *Program) Visit()

Visit 触发项目扫描处理动作

Jump to

Keyboard shortcuts

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