Blame view

node_modules/clean-css/lib/utils/format-position.js 239 Bytes
aaac7fed   liuqimichale   add
1
2
3
4
5
6
7
8
9
10
11
  function formatPosition(metadata) {
    var line = metadata[0];
    var column = metadata[1];
    var source = metadata[2];
  
    return source ?
      source + ':' + line + ':' + column :
      line + ':' + column;
  }
  
  module.exports = formatPosition;