Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
Run symbol table link check only on Jac modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mgtm98 committed Aug 4, 2024
1 parent 9dbe1f2 commit 6447817
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jaclang/compiler/passes/main/access_modifier_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ def after_pass(self) -> None:
def exit_node(self, node: ast.AstNode) -> None:
"""Exit node."""
super().exit_node(node)
if settings.lsp_debug and isinstance(node, ast.NameAtom) and not node.sym:
if (
settings.lsp_debug
and isinstance(node, ast.NameAtom)
and not node.sym
and not node.parent_of_type(ast.Module).py_raised
):
self.warning(f"Name {node.sym_name} not present in symbol table")

def access_check(self, node: ast.Name) -> None:
Expand Down

0 comments on commit 6447817

Please sign in to comment.