UNPKG

239 BJavaScriptView Raw
1function formatPosition(metadata) {
2 var line = metadata[0];
3 var column = metadata[1];
4 var source = metadata[2];
5
6 return source ?
7 source + ':' + line + ':' + column :
8 line + ':' + column;
9}
10
11module.exports = formatPosition;