]> git.lizzy.rs Git - rust.git/commit
Auto merge of #25387 - eddyb:syn-file-loader, r=nikomatsakis
authorbors <bors@rust-lang.org>
Sun, 17 May 2015 00:05:34 +0000 (00:05 +0000)
committerbors <bors@rust-lang.org>
Sun, 17 May 2015 00:05:34 +0000 (00:05 +0000)
commitc23a9d42ea082830593a73d25821842baf9ccf33
treef912990ab013f4e5f1fe7f2b92fa3830aaea069c
parent2da9efefca51b1ba2e173ad3136812eacc0c1ce7
parent8cc9878f8d5d7581006d3af1fb3c6732b41c85a3
Auto merge of #25387 - eddyb:syn-file-loader, r=nikomatsakis

This allows compiling entire crates from memory or preprocessing source files before they are tokenized.

Minor API refactoring included, which is a [breaking-change] for libsyntax users:
* `ParseSess::{next_node_id, reserve_node_ids}` moved to rustc's `Session`
* `new_parse_sess` -> `ParseSess::new`
* `new_parse_sess_special_handler` -> `ParseSess::with_span_handler`
* `mk_span_handler` -> `SpanHandler::new`
* `default_handler` -> `Handler::new`
* `mk_handler` -> `Handler::with_emitter`
* `string_to_filemap(sess source, path)` -> `sess.codemap().new_filemap(path, source)`
src/libsyntax/diagnostic.rs
src/libsyntax/parse/lexer/mod.rs
src/libsyntax/parse/parser.rs