// VisitSyntax checks the syntax.
VisitSyntax checks the syntax.
// VisitSyntax checks the syntax .
func (v *fileHasCommentVisitor) VisitSyntax(s *parser.Syntax) bool {
	if !hasComment(s.Comments) {
		v.AddFailuref(s.Meta.Pos, `File should start with a doc comment`)
	}
	return false
}
func ( v * fileHasCommentVisitor ) VisitSyntax ( s * parser . Syntax ) bool { if ! hasComment ( s . Comments ) { v . AddFailuref ( s . Meta . Pos , `File should start with a doc comment` ) } return false }
VisitSyntax checks the syntax.
VisitSyntax checks the syntax .