(msg)
| 59 | var errorsList = []; |
| 60 | |
| 61 | function error(msg) { |
| 62 | var err: any = new Error(options.source + ':' + lineno + ':' + column + ': ' + msg); |
| 63 | err.reason = msg; |
| 64 | err.filename = options.source; |
| 65 | err.line = lineno; |
| 66 | err.column = column; |
| 67 | err.source = css; |
| 68 | |
| 69 | if (options.silent) { |
| 70 | errorsList.push(err); |
| 71 | } else { |
| 72 | throw err; |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | /** |
| 77 | * Parse stylesheet. |
no test coverage detected