Skip to content

Commit b57562d

Browse files
committed
Fix linting errors
1 parent 196301c commit b57562d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/app/src/app/components/CodeEditor/Monaco/workers/syntax-highlighter.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ function getParentRanges(node) {
3838
let lastEnd = start;
3939

4040
self.ts.forEachChild(node, child => {
41-
const [start, end] = nodeToRange(child);
41+
const [s, e] = nodeToRange(child);
4242

4343
ranges.push({
4444
start: lastEnd,
45-
end: start,
45+
end: s,
4646
});
47-
lastEnd = end;
47+
lastEnd = e;
4848
});
4949

5050
if (lastEnd !== end) {
@@ -58,7 +58,7 @@ function getParentRanges(node) {
5858
}
5959

6060
function addChildNodes(node, lines, classifications) {
61-
const parentKind = ts.SyntaxKind[node.kind];
61+
const parentKind = self.ts.SyntaxKind[node.kind];
6262

6363
self.ts.forEachChild(node, id => {
6464
const type = getNodeType(node, id);
@@ -74,7 +74,7 @@ function addChildNodes(node, lines, classifications) {
7474
return {
7575
start: start + 1 - offset,
7676
end: end + 1 - offset,
77-
kind: ts.SyntaxKind[id.kind],
77+
kind: self.ts.SyntaxKind[id.kind],
7878
parentKind,
7979
type,
8080
startLine,

0 commit comments

Comments
 (0)