syntax::diagnostic: Remove unnecessary traits
This removes trait `handler` and `span_handler`, and renames `HandlerT` to `Handler`, `CodemapT` to `SpanHandler`.
This commit is contained in:
parent
a52cdfdfce
commit
fe10c63326
16 changed files with 74 additions and 103 deletions
|
|
@ -12,7 +12,6 @@ use ast;
|
|||
use ast::Name;
|
||||
use codemap;
|
||||
use codemap::{CodeMap, Span, ExpnInfo};
|
||||
use diagnostic::span_handler;
|
||||
use ext;
|
||||
use ext::expand;
|
||||
use parse;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
use ast;
|
||||
use ast::{token_tree, tt_delim, tt_tok, tt_seq, tt_nonterminal,Ident};
|
||||
use codemap::{Span, dummy_sp};
|
||||
use diagnostic::span_handler;
|
||||
use diagnostic::SpanHandler;
|
||||
use ext::tt::macro_parser::{named_match, matched_seq, matched_nonterminal};
|
||||
use parse::token::{EOF, INTERPOLATED, IDENT, Token, nt_ident};
|
||||
use parse::token::{ident_to_str};
|
||||
|
|
@ -30,7 +30,7 @@ struct TtFrame {
|
|||
}
|
||||
|
||||
pub struct TtReader {
|
||||
sp_diag: @mut span_handler,
|
||||
sp_diag: @mut SpanHandler,
|
||||
// the unzipped tree:
|
||||
stack: @mut TtFrame,
|
||||
/* for MBE-style macro transcription */
|
||||
|
|
@ -45,7 +45,7 @@ pub struct TtReader {
|
|||
/** This can do Macro-By-Example transcription. On the other hand, if
|
||||
* `src` contains no `tt_seq`s and `tt_nonterminal`s, `interp` can (and
|
||||
* should) be none. */
|
||||
pub fn new_tt_reader(sp_diag: @mut span_handler,
|
||||
pub fn new_tt_reader(sp_diag: @mut SpanHandler,
|
||||
interp: Option<HashMap<Ident,@named_match>>,
|
||||
src: ~[ast::token_tree])
|
||||
-> @mut TtReader {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue