Skip to content

Commit

Permalink
another regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Schanzer committed Mar 1, 2021
1 parent 6693e59 commit 3b1e28b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ export class AST {
followsComment(pos) {
// TODO: efficiency
for (const node of this.nodeIdMap.values()) {
if (node.options.comment?.to.line == pos.line
&& node.options.comment?.to.ch <= pos.ch) {
if (node.options.comment?.to?.line == pos.line
&& node.options.comment?.to?.ch <= pos.ch) {
return true;
} else if (node.options.comment
&& node.to.line == pos.line
Expand Down

0 comments on commit 3b1e28b

Please sign in to comment.