refactor: clarify diagnostics and adopt ptrcast inference

This commit is contained in:
2026-09-19 23:16:18 +02:00
parent 8bb539359b
commit 438f660e76
7 changed files with 27 additions and 28 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ parses_expression_precedence_through_tree_views test {
try testing.expect_equal(ast.ExprKind.binary, ast.expr_kind(&tree, add.right))
multiply :: ast.binary_expr(&tree, add.right)
try testing.expect_equal(ast.BinaryOperator.multiply, multiply.operator)
try testing.expect_equal(0, diagnostics.len(&diagnostic_store))
try testing.expect_equal(0, diagnostics.count(&diagnostic_store))
}
parses_function_structure_through_tree_views test {
@@ -63,7 +63,7 @@ parses_function_structure_through_tree_views test {
try testing.expect_equal(first.type, second.type)
try testing.expect(first.type != third.type)
try testing.expect_equal(1, ast.block_statement_count(&tree, function.body))
try testing.expect_equal(0, diagnostics.len(&diagnostic_store))
try testing.expect_equal(0, diagnostics.count(&diagnostic_store))
}
recovers_invalid_declaration_and_preserves_sibling test {