mirror of
https://github.com/irmen/prog8.git
synced 2025-01-11 13:29:45 +00:00
fix the symbol lookup error lsb(a) when a is in a multi vardecl.
This commit is contained in:
parent
5d7ddebcad
commit
4d37581694
@ -82,13 +82,8 @@ interface IStatementContainer {
|
|||||||
// but adding a memoization cache didn't make much of a practical runtime difference...
|
// but adding a memoization cache didn't make much of a practical runtime difference...
|
||||||
for (stmt in statements) {
|
for (stmt in statements) {
|
||||||
when(stmt) {
|
when(stmt) {
|
||||||
// is INamedStatement -> {
|
is VarDecl -> if(stmt.name==name || stmt.names.contains(name)) return stmt
|
||||||
// if(stmt.name==name) return stmt
|
is INamedStatement -> if(stmt.name==name) return stmt
|
||||||
// }
|
|
||||||
is VarDecl -> if(stmt.name==name) return stmt
|
|
||||||
is Label -> if(stmt.name==name) return stmt
|
|
||||||
is Subroutine -> if(stmt.name==name) return stmt
|
|
||||||
is Block -> if(stmt.name==name) return stmt
|
|
||||||
is AnonymousScope -> {
|
is AnonymousScope -> {
|
||||||
val found = stmt.searchSymbol(name)
|
val found = stmt.searchSymbol(name)
|
||||||
if(found!=null)
|
if(found!=null)
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
TODO
|
TODO
|
||||||
====
|
====
|
||||||
|
|
||||||
fix the symbol lookup error lsb(a) when a is in a multi vardecl.
|
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user