(lineNo)
| 57 | } |
| 58 | |
| 59 | function errorPrefix(lineNo) { |
| 60 | if (!currentFile.length) return ''; |
| 61 | const filename = currentFile[currentFile.length - 1]; |
| 62 | if (lineNo) { |
| 63 | return `${filename}:${lineNo}: `; |
| 64 | } else { |
| 65 | return `${filename}: `; |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | export function warn(msg, lineNo) { |
| 70 | warnings = true; |