var fs = require('fs');
var path = require('path');
var css = require('css');

module.exports = CssFile;

function CssFile(dir) {
  this.path = path.resolve(dir);

  var content = fs.readFileSync(this.path).toString();
  var size = content.match(/\n/g).length;
  this.css = css.parse(content);
  this.rules = this.css.stylesheet.rules;
  this.result = new Array(size);
  for (i = 0; i < size; i++) {
    this.result[i] = null;
  }
}

CssFile.prototype.mark = function(val, start, end) {
  for (i = start - 1; i < end; i++) {
    this.result[i] += val;
  }
};

var fs = require('fs');
var path = require('path');
var css = require('css');

module.exports = CssFile;

function CssFile(dir) {
  this.path = path.resolve(dir);

  var content = fs.readFileSync(this.path).toString();
  var size = content.match(/\n/g).length;
  this.css = css.parse(content);
  this.rules = this.css.stylesheet.rules;
  this.result = new Array(size);
  for (var i = 0; i < size; i++) {
    this.result[i] = null;
  }
}

CssFile.prototype.mark = function(val, start, end) {
  for (var i = start - 1; i < end; i++) {
    this.result[i] += val;
  }
};

Fix '"i" is not defined'
Fix '"i" is not defined'
