I am trying to add a rule for reporting undeclared varible as mentioned in
issue #1929.
According to the response in the issue, I want to implement this lint rule using the symbol table. But I encountered some problems. I cannot access the symble table in the /analysis/checkers folder where I am writing the lint rule.
I have found that symbol tables are currently only used in functions such as “hover” and “goto definition”. None of the lint rules used the symbol table. What should I do if I want to use the symble table in the lint rule in the /analysis/checkers/ folder?
I want to reference the header file of the symbol table in the lint rule, but I am concerned that referencing the symbol table would go against the original design intention.
I hope that someone can give me some advice.
Thank you.