Skip to content

Commit 67b126e

Browse files
committed
Unified: Add unhandled_node node type
This node type will be used to represent nodes that -- during translation -- manage to reach the catch-all rule at the end. This almost certainly indicates something went wrong. In contrast, `unsupported_node` will now be used for nodes that we're aware of, but which have not proper translation just yet.
1 parent 37a3ae5 commit 67b126e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎unified/extractor/ast_types.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ supertypes:
3434
- switch_expr
3535
- unresolved_operator_sequence
3636
- unsupported_node
37+
- unhandled_node
3738
- or_pattern
3839
- conditional_pattern
3940
- bulk_importing_pattern
@@ -84,6 +85,7 @@ supertypes:
8485
- type_alias_declaration
8586
- associated_type_declaration
8687
- unsupported_node
88+
- unhandled_node
8789
type_constraint:
8890
- equality_type_constraint
8991
- bound_type_constraint
@@ -421,6 +423,9 @@ named:
421423
# A node that we don't yet translate
422424
unsupported_node:
423425

426+
# A node kind that has no explicit translation or unsupported classification
427+
unhandled_node:
428+
424429
infix_operator:
425430

426431
prefix_operator:

0 commit comments

Comments
 (0)