Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/tools/sass-variable-explainer/line-info.ts
6433 views
1
import { withType } from './ast-utils.ts';
2
3
export const simplifyLineInfo = (outer: any) =>
4
withType(outer, (node: any) => {
5
const start = node?.start;
6
const next = node?.next;
7
8
return {
9
...node,
10
start: undefined,
11
next: undefined,
12
line: start?.line,
13
lineEnd: next?.line,
14
}
15
});
16
17
18