UNPKG

arc-templates

Version:

Fully powered JavaScript template engine with halfway-decent syntax.

17 lines (14 loc) 370 B
class Location { constructor(filename, line, column) { this.filename = filename; this.line = line; this.column = column; } toString() { return this.filename + ' ' + this.locationString(); } locationString() { return '(' + this.line + ',' + this.column + ')'; } } export default Location;