Go stdlib package — regexp/syntax. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.Compile()NeutralCompile(re *Regexp) (*Prog, error)
Compile compiles the regexp into a program to be executed.
.EmptyOpContext()NeutralEmptyOpContext(r1 rune, r2 rune) EmptyOp
EmptyOpContext returns the zero-width assertions
.Inst.MatchEmptyWidth()NeutralInst.MatchEmptyWidth(before rune, after rune) bool
MatchEmptyWidth reports whether the instruction matches
.Inst.MatchRune()NeutralInst.MatchRune(r rune) bool
MatchRune reports whether the instruction matches (and consumes) r.
.Inst.MatchRunePos()NeutralInst.MatchRunePos(r rune) int
MatchRunePos checks whether the instruction matches (and consumes) r.
.IsWordChar()NeutralIsWordChar(r rune) bool
IsWordChar reports whether r is considered a “word character”
| FQN | Field | |
|---|---|---|
| regexp/syntax | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import ... # regexp/syntax