astanalyzer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ASTAnalyzerTreeNodeTypeNavigation = "navigation"
	ASTAnalyzerTreeNodeTypeMatch      = "match"
)
View Source
const (
	AssetTypeOriginalAsset     = "asset"
	AssetTypeReversedSourcemap = "reversed_sourcemap"
)
View Source
const (
	MsgTypeGetAnalysisRequest  = "getAnalysisRequest"
	MsgTypeGetAnalysisResponse = "getAnalysisResponse"
)

Variables

This section is empty.

Functions

func NewAstAnalyzerModule

func NewAstAnalyzerModule(concurrency int) *astAnalyzerModule

Types

type ASTAnalyzerTreeNode

type ASTAnalyzerTreeNode struct {
	ID          string                  `json:"id,omitempty"`
	Type        ASTAnalyzerTreeNodeType `json:"type,omitempty"`
	Data        any                     `json:"data,omitempty"`
	Label       string                  `json:"label,omitempty"`
	Description string                  `json:"description,omitempty"`
	IconName    string                  `json:"iconName,omitempty"`
	Tooltip     string                  `json:"tooltip,omitempty"`
	Children    []ASTAnalyzerTreeNode   `json:"children,omitempty"`
}

type ASTAnalyzerTreeNodeType

type ASTAnalyzerTreeNodeType string

type AnalyzerMatch

type AnalyzerMatch struct {
	FilePath     string          `json:"filePath"`
	AnalyzerName string          `json:"analyzerName"`
	Value        string          `json:"value"`
	Start        Position        `json:"start"`
	End          Position        `json:"end"`
	Tags         map[string]bool `json:"tags"`
	Extra        map[string]any  `json:"extra"`
}

type Position

type Position struct {
	/** 1-based */
	Line int64 `json:"line"`
	/** 0-based */
	Column int64 `json:"column"`
}

Jump to

Keyboard shortcuts

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