import { Range } from 'vscode' ; export class Highlight { private _userName : string ; private _range : Range ; private _comments ? : string ; constructor ( userName , range , comments ? ) { this . _userName = userName ; this . _range = range ; this . _comments = comments ; } public get range ( ) : Range { return this . _range ; } public get userName ( ) : string { return this . _userName ; } public get startLine ( ) : number { return this . _range . start . line + 1 ; } public get endLine ( ) : number { return this . _range . end . line + 1 ; } public get comments ( ) : string | undefined { return this . _comments ; } public Update ( newRange ) { this . _range = newRange ; } }