]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/codemap.rs
Get rid of structural records in libsyntax and the last bit in librustc.
[rust.git] / src / libsyntax / codemap.rs
index c9bc41ed61e9b3efe9cc1fa5149b26ae210d3445..3a863fc7ac5dc7cc4f1c441406d8d164611c8510 100644 (file)
@@ -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;