def parse_file(parser, file)
      return parser.parse(File.read(file, :encoding => Encoding::UTF_8), file)
    end
def parse_file(parser, file)
      return parser.parse(File.read(file, :encoding => Encoding::UTF_8), file)
    end
Parses the given file and returns an Array containing all the associated
 AST nodes and comments.

 @param [RubyLint::Parser] parser
 @param [String] file
 @return [Array]