%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/cwg/wp-content/themes/cwg/node_modules/postcss-reporter/lib/
Upload File :
Create Path :
Current File : //var/www/cwg/wp-content/themes/cwg/node_modules/postcss-reporter/lib/util.js

var get = require('lodash.get');

exports.getLocation = function(message) {
  var messageNode = message.node;

  var location = {
    line: message.line,
    column: message.column,
  };

  var messageInput = get(messageNode, 'source.input');

  if (!messageInput) return location;

  var originLocation = messageInput.origin && messageInput.origin(message.line, message.column);
  if (originLocation) return originLocation;

  location.file = messageInput.file || messageInput.id;
  return location;
};

Zerion Mini Shell 1.0