rust-analyzer/crates/syntax/src/ast
bors[bot] a57bd59f35
Merge #8813
8813: Get some more array lengths! r=lf- a=lf-

This is built on #8799 and thus contains its changes. I'll rebase it onto master when that one gets merged. It adds support for r-a understanding the length of:

* `let a: [u8; 2] = ...`
* `let a = b"aaa"`
* `let a = [0u8; 4]`

I have added support for getting the values of byte strings, which was not previously there. I am least confident in the correctness of this part and it probably needs some more tests, as we currently have only one test that exercised that part (!).

Fixes #2922.

Co-authored-by: Jade <software@lfcode.ca>
2021-05-16 01:53:12 +00:00
..
generated Parse extended_key_value_attributes 2021-03-19 02:13:46 +01:00
edit.rs internal: use more mutable APIs 2021-05-14 20:00:35 +03:00
edit_in_place.rs internal: use more mutable APIs 2021-05-14 20:00:35 +03:00
expr_ext.rs a lot of clippy::style fixes 2021-03-21 16:15:41 +01:00
generated.rs Deny unreachable-pub 2020-11-02 14:07:08 +01:00
make.rs internal: rewrite assoc item manipulaion to use mutable trees 2021-05-14 18:47:08 +03:00
node_ext.rs Hide implementation details of TokenText 2021-05-06 10:07:06 +05:00
token_ext.rs Support length for ByteStrings 2021-05-12 21:22:46 -07:00
traits.rs Better handling of block doc comments 2021-03-17 14:48:57 +01:00