Fix broken search where member names accidentally match variables.
This commit is contained in:
parent
52a9fdde8a
commit
a012406ca4
|
|
@ -58,7 +58,7 @@ struct symbol_search_results {
|
||||||
NetEvent*eve;
|
NetEvent*eve;
|
||||||
};
|
};
|
||||||
|
|
||||||
bool symbol_search(const LineInfo*li, Design*des, NetScope*scope,
|
static bool symbol_search(const LineInfo*li, Design*des, NetScope*scope,
|
||||||
pform_name_t path, struct symbol_search_results*res,
|
pform_name_t path, struct symbol_search_results*res,
|
||||||
NetScope*start_scope = 0)
|
NetScope*start_scope = 0)
|
||||||
{
|
{
|
||||||
|
|
@ -100,6 +100,9 @@ bool symbol_search(const LineInfo*li, Design*des, NetScope*scope,
|
||||||
"`" << path_tail.name << "' in path `" << path << "'" << endl;
|
"`" << path_tail.name << "' in path `" << path << "'" << endl;
|
||||||
des->errors += 1;
|
des->errors += 1;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// Prefix is present, but is NOT a scope. Fail!
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue