src/utils/position.js
function(node) {
    if (node) {
        this.start = {
            line: node.start.line,
            column: node.start.column
        };
        this.end = {
            line: node.end.line,
            column: node.end.column
        };
        this.offset = {
            start: node.start.offset,
            end: node.end.offset
        };
    }
}
function(node) {
    if (node) {
        this.start = {
            line: node.start.line,
            column: node.start.column
        };
        this.end = {
            line: node.end.line,
            column: node.end.column
        };
        this.offset = {
            start: node.start.offset,
            end: node.end.offset
        };
    }
}
function ( node ) { if ( node ) { this . start = { line : node . start . line , column : node . start . column } ; this . end = { line : node . end . line , column : node . end . column } ; this . offset = { start : node . start . offset , end : node . end . offset } ; } }
Defines a position object
@constructor Position
@property {Object} start
@property {Object} end
@property {Object} offset
Defines a position object