Skip to content

Commit a6daa57

Browse files
committed
the flat() call never does anything
1 parent e5e56cf commit a6daa57

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/slang-nodes/MemberAccessExpression.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,8 @@ export class MemberAccessExpression extends SlangNode {
131131
}
132132

133133
print(path: AstPath<MemberAccessExpression>, print: PrintFunction): Doc {
134-
let operandDoc = path.call(print, 'operand');
135-
if (Array.isArray(operandDoc)) {
136-
operandDoc = operandDoc.flat();
137-
}
138-
139134
const document = [
140-
operandDoc,
135+
path.call(print, 'operand'),
141136
label('separator', [softline, '.']),
142137
path.call(print, 'member')
143138
].flat();

0 commit comments

Comments
 (0)