rust-analyzer/crates
bors[bot] 1dc9adc6e2 Merge #1290
1290: Add Union to code_model r=matklad a=matklad

@flodiebold I am conflicted about two possible implementation approaches:

* we can add a separate `struct Union` to code model
* we can add `fn is_union(&self)` to existing `Struct`

This PR goes with the former approach, because it seems like Unions are sufficiently different in semantics to warrant a separate types. Which is in contrast to Syntax Tree, where both structs and unions share the same node kind, because their syntax is the same. 

What would be the right thing to do here?

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2019-05-23 17:23:17 +00:00
..
gen_lsp_server updated gen_lsp_server examples 2019-05-22 20:35:12 -05:00
ra_arena Add is_empty to Arena 2019-04-26 11:42:10 -04:00
ra_assists Merge #1281 2019-05-22 07:39:54 +00:00
ra_batch migrate to salsas interning 2019-04-09 22:51:22 +03:00
ra_cli output the progress for real 2019-05-20 21:20:52 +03:00
ra_db add profile calls to parsing/expansion routines 2019-05-22 11:31:07 +03:00
ra_fmt apply T! macro where it is possible 2019-05-15 15:35:47 +03:00
ra_hir add union to code_model 2019-05-23 20:18:47 +03:00
ra_ide_api add union to code_model 2019-05-23 20:18:47 +03:00
ra_lsp_server Added local macro goto 2019-05-04 17:39:51 +01:00
ra_mbe Formatting 2019-05-23 09:31:36 +08:00
ra_parser apply T! macro where it is possible 2019-05-15 15:35:47 +03:00
ra_prof better profilig 2019-05-22 00:00:58 +03:00
ra_project_model Sends cwd info for runnables and code lenses 2019-04-14 10:04:38 +02:00
ra_syntax sort hash maps for tests 2019-05-21 14:14:31 +03:00
ra_text_edit Disable fork feature for proptest 2019-03-23 08:57:07 +01:00
ra_tt Use slice instead of Vec 2019-05-23 21:05:22 +08:00
test_utils fix error on wrong path 2019-03-17 12:53:22 +03:00
thread_worker automatically wait for worker threads 2019-02-14 21:11:07 +03:00
tools Use EXE extension for pre-commit hook on Window 2019-03-27 07:52:59 +01:00