Skip to content

Commit 2982e87

Browse files
committed
Fixed variable list not being added
1 parent f2d8fd8 commit 2982e87

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/utils/vbaSyntaxParser.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ class VbaTreeWalkListener implements vbaListener {
111111
const declaration = new VariableStatementElement(ctx, this.doc);
112112
this.resultsContainer.addElement(declaration);
113113
declaration.variableList.forEach((v) => this.resultsContainer.addScopeDeclaration(v));
114+
const vars = declaration.variableList;
115+
vars.forEach((x) => this.resultsContainer.addElement(x));
114116
}
115117

116118
enterImplicitCallStmt_InStmt = (ctx: ImplicitCallStmt_InStmtContext) => this.enterImplicitCallStmt(ctx);

0 commit comments

Comments
 (0)