Documentation
¶
Overview ¶
Package pattern defines the shared structural match result type produced by pattern-search ports (PatternProvider) and consumed by rules as evidence.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Match ¶
type Match struct {
File string // repo-relative file path
Pattern string // pattern ID from PatternDef.ID
Text string // matched source text
Node string // syntax node kind (e.g. "call_expression")
Line int // 1-based line number
Column int // 0-based column offset
}
Match is a single ast-grep structural match result, shared by ports (producer) and rules (consumer evidence).
Click to show internal directories.
Click to hide internal directories.