Module syntax::ext::source_util[][src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Re-exports

use ast;
use syntax_pos;
use syntax_pos::Pos;
use syntax_pos::Span;
use syntax_pos::FileName;
use ext::base::*;
use ext::base;
use ext::build::AstBuilder;
use parse::token;
use parse::DirectoryOwnership;
use parse;
use print::pprust;
use ptr::P;
use ptr::P;
use symbol::Symbol;
use tokenstream;
use util::small_vector::SmallVector;
use std::fs::File;
use std::io::prelude::*;
use std::path::PathBuf;
use rustc_data_structures::sync::Lrc;

Functions

expand_column [
Experimental
]
expand_column_gated [
Experimental
]
expand_file [
Experimental
]

file!(): expands to the current filename */ The filemap (loc.file) contains a bunch more information we could spit out if we wanted.

expand_include [
Experimental
]

include! : parse the given file as an expr This is generally a bad idea because it's going to behave unhygienically.

expand_include_bytes [
Experimental
]
expand_include_str [
Experimental
]
expand_line [
Experimental
]

line!(): expands to the current line number

expand_mod [
Experimental
]
expand_stringify [
Experimental
]
res_rel_file [
Experimental
]