@@ -59,7 +59,7 @@ pub fn apply_structural_rules_to_node(
5959 apply_ast_structural_rule_entries_to_scoped_expr(
6060 file, entries, scoped_expr, hits,
6161 )
62- @untyped_ast. NodeVisitAction :: NodeVisitPrune
62+ NodeVisitPrune
6363 })
6464 hits
6565}
@@ -171,7 +171,7 @@ pub fn apply_taint_rules(
171171 rules : Array [CompiledRule ],
172172) -> Array [RuleFinding ] raise {
173173 let hits : Array [RuleFinding ] = []
174- if root_node.kind == @untyped_ast. NodeKind :: ImplList {
174+ if root_node.kind == ImplList {
175175 for entry in root_node.children {
176176 let (_, node) = entry
177177 let node_hits = apply_taint_rules_to_node(file, node, rules)
@@ -274,7 +274,7 @@ fn apply_inside_expr_ast_bucketed(
274274 )
275275 } else {
276276 match structural.patterns_not_mode {
277- @model. StructuralPatternsNotMode :: RejectUncoveredNegative =>
277+ RejectUncoveredNegative =>
278278 apply_ast_bucketed_covered_patterns_in_target_subtree(
279279 file,
280280 rule,
@@ -286,7 +286,7 @@ fn apply_inside_expr_ast_bucketed(
286286 inside.compiled.identifier_metavars,
287287 hits,
288288 )
289- @model. StructuralPatternsNotMode :: PruneOnNegative =>
289+ PruneOnNegative =>
290290 apply_ast_bucketed_patterns_in_target_subtree(
291291 file,
292292 rule,
@@ -322,8 +322,8 @@ fn apply_ast_bucketed_patterns_in_target_subtree(
322322 file, rule, pattern_buckets, negative_pattern_buckets, scoped_expr, outer_loc,
323323 outer_bindings, inherited_identifier_metavars, hits,
324324 ) {
325- RulePrune => @untyped_ast. NodeVisitAction :: NodeVisitPrune
326- RuleContinue => @untyped_ast. NodeVisitAction :: NodeVisitContinue
325+ RulePrune => NodeVisitPrune
326+ RuleContinue => NodeVisitContinue
327327 }
328328 })
329329}
@@ -344,19 +344,19 @@ fn apply_ast_bucketed_covered_patterns_in_target_subtree(
344344 let mut rejected = false
345345 @untyped_ast.visit_node_scoped_exprs(target, fn(scoped_expr) {
346346 if rejected {
347- @untyped_ast. NodeVisitAction :: NodeVisitPrune
347+ NodeVisitPrune
348348 } else {
349349 match
350350 apply_ast_bucketed_covered_patterns_at_scoped_expr(
351351 file, rule, pattern_buckets, negative_pattern_buckets, scoped_expr, outer_loc,
352352 outer_bindings, inherited_identifier_metavars, pending_hits,
353353 ) {
354- InsideTargetPrune => @untyped_ast. NodeVisitAction :: NodeVisitPrune
354+ InsideTargetPrune => NodeVisitPrune
355355 InsideTargetReject => {
356356 rejected = true
357- @untyped_ast. NodeVisitAction :: NodeVisitPrune
357+ NodeVisitPrune
358358 }
359- InsideTargetContinue => @untyped_ast. NodeVisitAction :: NodeVisitContinue
359+ InsideTargetContinue => NodeVisitContinue
360360 }
361361 }
362362 })
@@ -641,7 +641,7 @@ fn ast_guards_match(
641641) -> Bool {
642642 for guard_entry in guards {
643643 match guard_entry.capture_kind {
644- @model. RuleGuardCaptureKind :: IdentifierGuard =>
644+ IdentifierGuard =>
645645 match bindings.get(guard_entry.name) {
646646 Some (value) => {
647647 guard node_leaf_string(value) is Some (text) else { return false }
@@ -651,7 +651,7 @@ fn ast_guards_match(
651651 }
652652 _ => return false
653653 }
654- @model. RuleGuardCaptureKind :: ConstantGuard =>
654+ ConstantGuard =>
655655 match bindings.get(guard_entry.name) {
656656 Some (value) => {
657657 guard constant_guard_value(value) is Some (text) else {
0 commit comments