diff --git a/report-viewer/src/model/MatchInSingleFile.ts b/report-viewer/src/model/MatchInSingleFile.ts index fdca8d166..bcaae43c0 100644 --- a/report-viewer/src/model/MatchInSingleFile.ts +++ b/report-viewer/src/model/MatchInSingleFile.ts @@ -2,12 +2,6 @@ import type { Match } from './Match' /** * Describes a match in a single file. - * @property start - Starting line of the match. - * @property end - Ending line of the match. - * @property linked_panel - The files container containing the file of the second submission to which this is matched. - * @property linked_file - The file name containing the same match in the second submission. - * @property linked_line - The start of the match in the second file. - * @property color - Color of the match. */ export class MatchInSingleFile { private readonly _match: Match @@ -18,10 +12,16 @@ export class MatchInSingleFile { this._index = index } + /** + * The match object. + */ get match(): Match { return this._match } + /** + * The start line of the match. + */ get start(): number { if (this._index === 1) { return this._match.startInFirst @@ -30,6 +30,9 @@ export class MatchInSingleFile { } } + /** + * The end line of the match. + */ get end(): number { if (this._index === 1) { return this._match.endInFirst @@ -37,12 +40,4 @@ export class MatchInSingleFile { return this._match.endInSecond } } - - get file(): string { - if (this._index === 1) { - return this._match.firstFile - } else { - return this._match.secondFile - } - } }