?
Path : /home/admin/public_html/old/media/editors/codemirror/addon/lint/ |
Current File : /home/admin/public_html/old/media/editors/codemirror/addon/lint/coffeescript-lint.min.js |
!function(a){"object"==typeof exports&&"object"==typeof module?a(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],a):a(CodeMirror)}(function(a){"use strict";a.registerHelper("lint","coffeescript",function(b){var c=[],d=function(b){var d=b.lineNumber;c.push({from:a.Pos(d-1,0),to:a.Pos(d,0),severity:b.level,message:b.message})};try{for(var e=coffeelint.lint(b),f=0;f<e.length;f++)d(e[f])}catch(g){c.push({from:a.Pos(g.location.first_line,0),to:a.Pos(g.location.last_line,g.location.last_column),severity:"error",message:g.message})}return c})});