You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
389 B
21 lines
389 B
/**
|
|
* Store position information for a node
|
|
*/
|
|
export default class Position {
|
|
start: {
|
|
line: number;
|
|
column: number;
|
|
};
|
|
end: {
|
|
line: number;
|
|
column: number;
|
|
};
|
|
source?: string;
|
|
constructor(start: {
|
|
line: number;
|
|
column: number;
|
|
}, end: {
|
|
line: number;
|
|
column: number;
|
|
}, source: string);
|
|
}
|
|
|