|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
714 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 | Object.defineProperty(exports, "__esModule", { value: true });
|
|---|
| 3 | const IssuePosition_1 = require("./IssuePosition");
|
|---|
| 4 | function compareIssueLocations(locationA, locationB) {
|
|---|
| 5 | if (locationA === locationB) {
|
|---|
| 6 | return 0;
|
|---|
| 7 | }
|
|---|
| 8 | if (!locationA) {
|
|---|
| 9 | return -1;
|
|---|
| 10 | }
|
|---|
| 11 | if (!locationB) {
|
|---|
| 12 | return 1;
|
|---|
| 13 | }
|
|---|
| 14 | return (IssuePosition_1.compareIssuePositions(locationA.start, locationB.start) ||
|
|---|
| 15 | IssuePosition_1.compareIssuePositions(locationA.end, locationB.end));
|
|---|
| 16 | }
|
|---|
| 17 | exports.compareIssueLocations = compareIssueLocations;
|
|---|
| 18 | function formatIssueLocation(location) {
|
|---|
| 19 | return `${location.start.line}:${location.start.column}`;
|
|---|
| 20 | }
|
|---|
| 21 | exports.formatIssueLocation = formatIssueLocation;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.