Documentation ¶
Index ¶
- func CheckPluginType(pluginType string, prog *ssaapi.Program)
- func GetPluginSSAOpt(pluginType string) []ssaapi.Option
- func RegisterCheckRuler(pluginTyp string, f CheckRuler)
- func RegisterSSAOptCollector(pluginTyp string, f SSAOptCollector)
- func RegisterTypeInfoCollector(pluginTyp string, f TypeInfoCollector)
- type CheckRuler
- type PluginTypeAnalyzer
- type SSAOptCollector
- type TypeInfoCollector
- type YaklangInfo
- type YaklangInfoKV
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPluginType ¶
func GetPluginSSAOpt ¶
func RegisterCheckRuler ¶
func RegisterCheckRuler(pluginTyp string, f CheckRuler)
func RegisterSSAOptCollector ¶
func RegisterSSAOptCollector(pluginTyp string, f SSAOptCollector)
func RegisterTypeInfoCollector ¶
func RegisterTypeInfoCollector(pluginTyp string, f TypeInfoCollector)
Types ¶
type CheckRuler ¶
type PluginTypeAnalyzer ¶
type PluginTypeAnalyzer struct { SSAOptCollectors map[string]SSAOptCollector TypeInfoCollectors map[string][]TypeInfoCollector CheckRulers map[string][]CheckRuler }
type SSAOptCollector ¶
type TypeInfoCollector ¶
type TypeInfoCollector func(*ssaapi.Program) *YaklangInfo
type YaklangInfo ¶
type YaklangInfo struct { Name string KV []*YaklangInfoKV }
func GetPluginInfo ¶
func GetPluginInfo(pluginType string, prog *ssaapi.Program) []*YaklangInfo
func NewYakLangInfo ¶
func NewYakLangInfo(name string) *YaklangInfo
func (*YaklangInfo) AddKV ¶
func (y *YaklangInfo) AddKV(value *YaklangInfoKV)
type YaklangInfoKV ¶
type YaklangInfoKV struct { Key string Value any Extern []*YaklangInfoKV }
func NewYaklangInfoKV ¶
func NewYaklangInfoKV(key string, value any) *YaklangInfoKV
func (*YaklangInfoKV) AddExtern ¶
func (y *YaklangInfoKV) AddExtern(key string, value any)
func (*YaklangInfoKV) AddExternInfo ¶
func (y *YaklangInfoKV) AddExternInfo(info *YaklangInfoKV)
func (*YaklangInfoKV) String ¶
func (y *YaklangInfoKV) String() string
Click to show internal directories.
Click to hide internal directories.