UNPKG

electron-angular-boilerplate

Version:

A basic electron app using AngularJS and Skeleton CSS with ES6 support

50 lines (38 loc) 1.14 kB
/* */ "format cjs"; "use strict"; var _toolsProtectJs2 = require("./../tools/protect.js"); var _toolsProtectJs3 = _interopRequireDefault(_toolsProtectJs2); exports.__esModule = true; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } _toolsProtectJs3["default"](module); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var Position = (function () { function Position() { _classCallCheck(this, Position); this.line = 1; this.column = 0; } Position.prototype.push = function push(str) { for (var i = 0; i < str.length; i++) { if (str[i] === "\n") { this.line++; this.column = 0; } else { this.column++; } } }; Position.prototype.unshift = function unshift(str) { for (var i = 0; i < str.length; i++) { if (str[i] === "\n") { this.line--; } else { this.column--; } } }; return Position; })(); exports["default"] = Position; module.exports = exports["default"];