0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test/incremental
Matthew Lugg ac77c23aff
Zir: prevent AST node offsets of field and backing type expressions changing
We represent AST nodes in ZIR as relative to a "baseline" node so that
source locations within unchanged declarations/types do not get
invalidated by incremental updates. However, we were missing a bit of
granualarity in container types: because container types have
declarations, but type resolution is only re-run if the fields change,
there is no single baseline node in a type declaration relative to which
the fields' AST nodes do not change. Instead, we need to track a few
different baseline nodes, and put the right one in the `LazySrcLoc`.
History 2026-09-29 16:07:45 +01:00
..
add_remove_struct_fields test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
add_remove_toplevel_fields test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
change_enum_tag_type test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
change_exports test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
change_panic_handler_explicit test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
add_decl test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
add_decl_namespaced test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
add_decls_around_bad_field_expr Zir: prevent AST node offsets of field and backing type expressions changing 2026-09-29 16:07:45 +01:00
add_field_and_nested_struct_uses_changed_decl test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
analysis_error_and_syntax_error test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
bad_import test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
change_bitpack_backing_int test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
change_container_kind test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
change_embed_file test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
change_fn_type test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
change_generic_line_number test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
change_line_number test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
change_module test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
change_panic_handler test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
change_reify_struct_field_type test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
change_shift_op test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
change_struct_same_fields test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
change_union_tag_type test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
change_zon_file test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
change_zon_file_no_result_type test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
compile_error_then_log test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
compile_log test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
delete_comptime_decls test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
dependency_on_type_of_inferred_global test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
do_nothing test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
fix_astgen_failure test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
function_becomes_inline test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
hello test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
increase_array_field_length test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
make_decl_pub test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
modify_inline_fn test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
move_src test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
pointer_to_decl_with_astgen_error test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
recursive_function_becomes_non_recursive test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
remove_enum_field test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
remove_function_with_changed_callee test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
remove_invalid_union_backing_enum test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
struct_reification_becomes_anon_init test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
tag_name test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
temporary_analysis_error_in_generic_signature test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
temporary_parse_error test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
type_becomes_comptime_only test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
type_dependency_loop test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
unreferenced_error test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00