Skip to content

Commit

Permalink
Remove IsGenerated
Browse files Browse the repository at this point in the history
  • Loading branch information
tenntenn committed Nov 23, 2020
1 parent e82c28b commit 5c234c7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions file.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,3 @@ func IsGeneratedFile(file *ast.File) bool {
}
return genCommentRegexp.MatchString(file.Doc.List[0].Text)
}

// IsGenerated reports whether a file which include pos has been generated automatically.
func IsGenerated(pass *analysis.Pass, pos token.Pos) bool {
return IsGeneratedFile(File(pass, pos))
}

0 comments on commit 5c234c7

Please sign in to comment.