rust/src/libsyntax
Nicholas Nethercote e913d69211 Remove StringReader::col.
It only has a single use, within code handling indented block comments.
We can replace that with the new `FileMap::col_pos()`, which computes
the col position (BytePos instead of CharPos) based on the record of the
last newline char (which we already record).

This is actually an improvement, because
`trim_whitespace_prefix_and_push_line()` was using `col`, which is a
`CharPos`, as a slice index, which is a byte/char confusion.
2018-05-14 14:41:34 +10:00
..
diagnostics Allow raw identifiers in diagnostic macros. 2018-03-18 13:27:56 -05:00
ext Auto merge of #50413 - kennytm:rollup, r=kennytm 2018-05-03 20:45:54 +00:00
parse Remove StringReader::col. 2018-05-14 14:41:34 +10:00
print Fix assertion message generation 2018-05-06 12:13:32 +09:00
util AST/HIR: Merge field access expressions for named and numeric fields 2018-04-12 23:02:09 +03:00
ast.rs make it compile again 2018-05-02 12:05:13 +02:00
attr.rs Auto merge of #50030 - flip1995:rfc2103, r=petrochenkov 2018-05-03 11:52:03 +00:00
build.rs rustc: Add some build scripts for librustc crates 2017-07-22 22:04:13 -07:00
Cargo.toml rustc_target: move in syntax::abi and flip dependency. 2018-04-26 17:49:16 +03:00
codemap.rs CodeMap functions refactored. 2018-03-18 20:46:29 -03:00
config.rs Rename ast::Variant_::name into ident + Fix rebase 2018-04-06 11:48:19 +03:00
diagnostic_list.rs Auto merge of #50030 - flip1995:rfc2103, r=petrochenkov 2018-05-03 11:52:03 +00:00
edition.rs Rename the 2018 edition lint names 2018-05-10 11:28:11 -07:00
entry.rs Cleanup InternedString. 2016-11-21 09:00:56 +00:00
feature_gate.rs rustc: Allow an edition's feature on that edition 2018-05-12 08:39:05 -06:00
fold.rs AST/HIR: Merge field access expressions for named and numeric fields 2018-04-12 23:02:09 +03:00
json.rs Approximate -> Applicability 2018-04-25 14:55:25 -07:00
lib.rs Add a Rayon thread pool 2018-05-13 01:28:20 +02:00
ptr.rs syntax: Rename P::unwrap into P::into_inner 2017-12-17 02:21:29 +03:00
README.md Replace many of the last references to readmes 2018-03-16 12:43:22 -05:00
show_span.rs use field init shorthand EVERYWHERE 2017-08-15 15:29:17 -07:00
std_inject.rs Reorder injection of std to get better compilation error 2018-04-16 12:28:30 -07:00
str.rs Inline char_at() and record_width. 2018-05-13 17:16:02 +10:00
test.rs Fixed tidy errors. 2018-04-26 17:49:24 +03:00
test_snippet.rs Remove syntax and syntax_pos thread locals 2018-03-14 11:56:01 +01:00
tokenstream.rs proc_macro: Stay on the "use the cache" path more 2018-04-18 19:36:48 -07:00
visit.rs rustc_target: move in syntax::abi and flip dependency. 2018-04-26 17:49:16 +03: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: