Closed jhiswin closed 10 years ago
This appears to happen only with unknown objects inside of for loops. Work around is to extract the unknown object and set it outside of the for loop declaration.
Eg:
dim rNode
set rNode=g_objDom.documentElement
for nI = 0 to rNode.selectNodes("Word").length -1
Note that rNode's type cannot be inferred here yet, because g_objDom isn't locatable. Workaround; Change
for nI = 0 to rNode.selectNodes("Word").length -1
to
dim forMax
forMax = rNode.selectNodes("Word").length -1
for nI = 0 to forMax
Fixed with commit 950802ff41431402bb1ef03749b4a0dfad417b61.
This was actually a bug in the antlr code generation, where the original ast was used in the tree parser and not the parsed one. This fixed by using a temporary in the grammar.
Some files throw an AST node error, unknown AST node