rust/src/libsyntax
kennytm 757c4407db
Rollup merge of #58116 - topecongiro:wrong-span-assignment, r=petrochenkov
Include the span of attributes of the lhs to the span of the assignment expression

This PR adds the span of attributes of the lhs to the span of the assignment expression. Currently with the following code, `#[attr]` is not included to the span of the assignment (`foo = true`).

```rust
#[attr]
foo = true;
```
The rational behind this change is that as libsyntax user I expect the span of the parent node includes every span of child nodes.

cc https://github.com/rust-lang/rustfmt/issues/3313, https://github.com/rust-lang/rust/issues/15701.
2019-02-06 00:29:02 +09:00
..
attr Add suggestions to deprecation lints 2019-01-30 17:49:04 +01:00
diagnostics improve non_snake_case diagnostics 2019-01-08 13:24:38 -05:00
ext Rollup merge of #57915 - petrochenkov:notto-disu, r=zackmdavis 2019-01-28 22:25:48 +01:00
parse Add the span of attributes of the lhs to the span of the assignment expression 2019-02-04 00:35:12 +09:00
print Auto merge of #57651 - JohnTitor:give-char-type, r=estebank 2019-01-20 08:26:12 +00:00
util Remove quote_*! macros and associated APIs 2019-01-24 07:37:34 -07:00
ast.rs Add suggestion for duplicated import. 2019-01-31 12:01:28 +01:00
build.rs Remove licenses 2018-12-25 21:08:33 -07:00
Cargo.toml Upgrade smallvec to 0.6.7 and use the new may_dangle feature. 2018-12-10 09:31:27 +11:00
config.rs remove _with_applicability from suggestion fns 2019-01-26 23:07:55 -05:00
diagnostic_list.rs Implement basic input validation for built-in attributes 2019-01-13 14:17:19 +03:00
early_buffered_lints.rs Implement basic input validation for built-in attributes 2019-01-13 14:17:19 +03:00
entry.rs Remove licenses 2018-12-25 21:08:33 -07:00
feature_gate.rs fix stabilization order of uniform_paths. 2019-02-02 07:42:27 +01:00
fold.rs Corrected spelling inconsistency 2019-01-22 09:08:52 +01:00
json.rs Cosmetic improvements 2019-01-13 19:47:02 +00:00
lib.rs Remove quote_*! macros and associated APIs 2019-01-24 07:37:34 -07:00
ptr.rs Fix memory leak in P::filter_map 2019-01-16 23:08:30 +09:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00
show_span.rs Remove licenses 2018-12-25 21:08:33 -07:00
source_map.rs Remove licenses 2018-12-25 21:08:33 -07:00
std_inject.rs Remove licenses 2018-12-25 21:08:33 -07:00
test.rs Implement basic input validation for built-in attributes 2019-01-13 14:17:19 +03:00
test_snippet.rs Remove licenses 2018-12-25 21:08:33 -07:00
tokenstream.rs proc_macro: make TokenStream::from_streams pre-allocate its vector. 2019-01-30 15:12:41 +01:00
visit.rs Remove ThinTokenStream. 2019-01-14 09:10:26 +11:00

The syntax crate contains those things concerned purely with syntax that is, the AST ("abstract syntax tree"), parser, pretty-printer, lexer, macro expander, and utilities for traversing ASTs.

For more information about how these things work in rustc, see the rustc guide: