Get rid of structural records in libsyntax and the last bit in librustc.
This commit is contained in:
parent
41a4151173
commit
b02f5c2090
25 changed files with 330 additions and 241 deletions
|
@ -196,11 +196,16 @@ pub struct LocWithOpt {
|
|||
// used to be structural records. Better names, anyone?
|
||||
pub struct FileMapAndLine {fm: @FileMap, line: uint}
|
||||
pub struct FileMapAndBytePos {fm: @FileMap, pos: BytePos}
|
||||
pub struct NameAndSpan {name: ~str, span: Option<span>}
|
||||
|
||||
pub struct CallInfo {
|
||||
call_site: span,
|
||||
callee: NameAndSpan
|
||||
}
|
||||
|
||||
/// Extra information for tracking macro expansion of spans
|
||||
pub enum ExpnInfo {
|
||||
ExpandedFrom({call_site: span,
|
||||
callie: {name: ~str, span: Option<span>}})
|
||||
ExpandedFrom(CallInfo)
|
||||
}
|
||||
|
||||
pub type FileName = ~str;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue