(fset *token.FileSet, file *ast.File)
| 557 | } |
| 558 | |
| 559 | func suppressedLines(fset *token.FileSet, file *ast.File) map[int]bool { |
| 560 | lines := make(map[int]bool) |
| 561 | for _, group := range file.Comments { |
| 562 | for _, comment := range group.List { |
| 563 | if strings.Contains(comment.Text, "intxcheck:ignore") { |
| 564 | lines[fset.Position(comment.Pos()).Line] = true |
| 565 | } |
| 566 | } |
| 567 | } |
| 568 | return lines |
| 569 | } |
| 570 | |
| 571 | func suppressedLine(fset *token.FileSet, suppressed map[int]bool, pos token.Pos) bool { |
| 572 | return suppressed[fset.Position(pos).Line] |