We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
for...in
for...of
1 parent aa5fb44 commit b3cbaa4Copy full SHA for b3cbaa4
1 file changed
src/slangPrinter.ts
@@ -21,8 +21,8 @@ function ignoreComments(path: AstPath<AstNode>): void {
21
// We ignore anything that is not an object
22
if (node === null || typeof node !== 'object') return;
23
24
- const keys = Object.keys(node) as (keyof StrictAstNode)[];
25
- for (const key of keys) {
+ let key: keyof StrictAstNode;
+ for (key in node) {
26
switch (key) {
27
// We ignore `kind`, `loc`, and comments since these are added by the
28
// parser
0 commit comments