We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 474a125 commit 9283738Copy full SHA for 9283738
src/lib/utils.ts
@@ -122,6 +122,7 @@ function getLocOffsetFix<T extends AST>(node: AstWithParent<T>): number {
122
node,
123
isASTWithSource
124
);
125
+ /* istanbul ignore if -- Safe-guard, out-of-scope of our own tests. */
126
if (astWithSource === null || !astWithSource.source) {
127
return 0;
128
}
0 commit comments