Method: JSCompiler::Parser.flymake_parser
- Defined in:
- lib/jsc/parser.rb
.flymake_parser(result) ⇒ Object
window_message_handlers.js:73: strict warning: trailing comma is not legal in ECMA-262 object initializers:
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/jsc/parser.rb', line 13 def flymake_parser(result) if $debug puts "#DEBUG flymake parser \n" end #TODO out = "" op = JSCompiler.op unless result.nil? file = JSCompiler.file format_type = JSCompiler.format_type num = result.size result.each do || out << "#{file}:#{message['lineno']}: #{op.singularize}: #{message['type']}: " + [op.singularize] +"\n" out << "#{file}:#{message['lineno']}: #{op.singularize}: #{message['line']} \n" unless ['line'].nil? out << "#{file}:#{message['lineno']}: #{op.singularize}: " + print_under_character(['charno']) end else out = "No #{op}" end return out end |