Skip to content

Create dummy AST nodes when they are not present#116

Merged
dflook merged 4 commits intomainfrom
stub-missing-nodes
Oct 18, 2024
Merged

Create dummy AST nodes when they are not present#116
dflook merged 4 commits intomainfrom
stub-missing-nodes

Conversation

@dflook
Copy link
Copy Markdown
Owner

@dflook dflook commented Oct 17, 2024

Now that we wrap the ast module, we can create dummy nodes when node types are not present.
This allows us test nodes types using isinstance instead of is_ast_node is most cases.
is_ast_node is still required for determining constant types and has been renamed is_constant_node.

Now that we wrap the ast module, we can create dummy nodes when node types are not present.
This allows us test nodes types using isinstance instead of is_ast_node is most cases.
is_ast_node is still required for determining constant types.
@dflook dflook merged commit e1f614b into main Oct 18, 2024
@dflook dflook deleted the stub-missing-nodes branch October 18, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant