format-position.js 239B

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