From b02f5c2090340a9007989b3eb384facb0f0286f2 Mon Sep 17 00:00:00 2001 From: Luqman Aden Date: Thu, 21 Feb 2013 00:16:31 -0800 Subject: Get rid of structural records in libsyntax and the last bit in librustc. --- src/libsyntax/codemap.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/libsyntax/codemap.rs') diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs index c9bc41ed61e..3a863fc7ac5 100644 --- a/src/libsyntax/codemap.rs +++ b/src/libsyntax/codemap.rs @@ -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} + +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}}) + ExpandedFrom(CallInfo) } pub type FileName = ~str; -- cgit 1.4.1-3-g733a5