Skip to content

Commit 8bac02c

Browse files
committed
Clarify the comment about dedent()
1 parent 5df76e9 commit 8bac02c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

syntax/abstract.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ function attach_comments(acc, cur) {
159159
}
160160
}
161161

162-
// Remove the largest common indentation from a list of PatternElements.
162+
// Remove the largest common indentation from a list of elements of a Pattern.
163+
// The indents are parsed in grammar.mjs and passed to abstract.mjs as string
164+
// primitives along with other PatternElements.
163165
function dedent(elements) {
164166
// Calculate the maximum common indent.
165167
let indents = elements.filter(element => typeof element === "string");

0 commit comments

Comments
 (0)