mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-20 09:03:56 +00:00
c3a4c4429d
This introduces the new type -- Semantics. Semantics maps SyntaxNodes to various semantic info, such as type, name resolution or macro expansions. To do so, Semantics maintains a HashMap which maps every node it saw to the file from which the node originated. This is enough to get all the necessary hir bits just from syntax.
15 lines
405 B
Rust
15 lines
405 B
Rust
//! See test_utils/src/marks.rs
|
|
|
|
test_utils::marks!(
|
|
inserts_angle_brackets_for_generics
|
|
inserts_parens_for_function_calls
|
|
goto_def_for_macros
|
|
goto_def_for_methods
|
|
goto_def_for_fields
|
|
goto_def_for_record_fields
|
|
goto_def_for_field_init_shorthand
|
|
call_info_bad_offset
|
|
dont_complete_current_use
|
|
test_resolve_parent_module_on_module_decl
|
|
search_filters_by_range
|
|
);
|