gotools/go/analysis/passes/directive/directive.go

const Doc

var Analyzer

func runDirective(pass *analysis.Pass) (interface{}

func checkGoFile(pass *analysis.Pass, f *ast.File) {}

func checkOtherFile(pass *analysis.Pass, filename string) error {}

type checker

func newChecker(pass *analysis.Pass, filename string, file *ast.File) *checker {}

func (check *checker) nonGoFile(pos token.Pos, fullText string) {}

func (check *checker) comment(pos token.Pos, line string) {}

// Go 1.20 strings.CutPrefix.
func stringsCutPrefix(s, prefix string) (after string, found bool) {}