|
8 | 8 | // option. This file may not be copied, modified, or distributed
|
9 | 9 | // except according to those terms.
|
10 | 10 |
|
| 11 | +extern crate syntax; |
| 12 | +extern crate syntax_pos; |
| 13 | +extern crate rustc_errors; |
| 14 | +extern crate rustc_data_structures; |
| 15 | + |
11 | 16 | use {Delimiter, Literal, LiteralKind, Spacing, Term, TokenNode};
|
12 | 17 |
|
13 |
| -use rustc_data_structures::sync::Lrc; |
14 |
| -use rustc_errors::{Diagnostic, DiagnosticBuilder, Level}; |
15 | 18 | use std::path::PathBuf;
|
16 |
| -use syntax_pos::{self, SyntaxContext, FileMap, FileName, MultiSpan, Pos, DUMMY_SP}; |
17 |
| -use syntax_pos::hygiene::Mark; |
18 |
| -use syntax::ast; |
19 |
| -use syntax::ext::base::{ExtCtxt, ProcMacro}; |
20 |
| -use syntax::parse::{self, token, ParseSess}; |
21 |
| -use syntax::tokenstream; |
| 19 | +use self::rustc_data_structures::sync::Lrc; |
| 20 | +use self::rustc_errors::{Diagnostic, DiagnosticBuilder, Level}; |
| 21 | +use self::syntax_pos::{SyntaxContext, FileMap, FileName, MultiSpan, Pos, DUMMY_SP}; |
| 22 | +use self::syntax_pos::hygiene::Mark; |
| 23 | +use self::syntax::ast; |
| 24 | +use self::syntax::ext::base::{ExtCtxt, ProcMacro}; |
| 25 | +use self::syntax::parse::{self, token, ParseSess}; |
| 26 | +use self::syntax::tokenstream; |
| 27 | + |
| 28 | +pub use self::syntax_pos::symbol::Symbol; |
22 | 29 |
|
23 | 30 | pub struct Quoter;
|
24 | 31 |
|
@@ -169,8 +176,8 @@ impl<'a> ::bridge::FrontendInterface for Rustc<'a> {
|
169 | 176 | }
|
170 | 177 | fn token_stream_from_token_tree(&self, node: ::TokenNode, span: Self::Span)
|
171 | 178 | -> Self::TokenStream {
|
172 |
| - use syntax::parse::token::*; |
173 |
| - use syntax::tokenstream::TokenTree; |
| 179 | + use self::syntax::parse::token::*; |
| 180 | + use self::syntax::tokenstream::TokenTree; |
174 | 181 |
|
175 | 182 | let (op, kind) = match node {
|
176 | 183 | TokenNode::Op(op, kind) => (op, kind),
|
@@ -224,7 +231,7 @@ impl<'a> ::bridge::FrontendInterface for Rustc<'a> {
|
224 | 231 | -> (Self::Span,
|
225 | 232 | Result<(::TokenNode, Option<Self::TokenStream>),
|
226 | 233 | (::Delimiter, Self::TokenStream)>) {
|
227 |
| - use syntax::parse::token::*; |
| 234 | + use self::syntax::parse::token::*; |
228 | 235 |
|
229 | 236 | let mut next = None;
|
230 | 237 |
|
|
0 commit comments