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

expression typeinfo implemented #586

Closed
wants to merge 1 commit into from
Closed

Conversation

ThakeeNathees
Copy link
Collaborator

Description

"""Pass handler for DictCompr nodes."""
mypy_node = node.gen.mypy_ast[0]
node.name_spec.sym_type = str(self.node_type_hash[mypy_node])

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These deleted methods are dynamically added above in init

"""Type check a member expr."""
out = super().visit_member_expr(e, is_lvalue)
FuseTypeInfoPass.node_type_hash[e] = out
return out
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the visit_expr method are deleted as the logic are the same, and added as method bound when the instance is initialized at __init__ with also extrace the type info.

@ThakeeNathees
Copy link
Collaborator Author

Suppressed by : #590

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant