libsyntax: Stop parsing structural record types

This commit is contained in:
Patrick Walton 2013-03-05 17:36:59 -08:00
parent 6b5d1afeec
commit 239e64242c
11 changed files with 21 additions and 37 deletions

View file

@ -217,7 +217,6 @@ pub struct FileLines {
pub enum FileSubstr {
pub FssNone,
pub FssInternal(span),
pub FssExternal({filename: ~str, line: uint, col: CharPos})
}
/// Identifies an offset of a multi-byte character in a FileMap
@ -348,12 +347,6 @@ pub impl CodeMap {
FssInternal(sp) =>
self.lookup_char_pos_adj(
sp.lo + (pos - loc.file.start_pos)),
FssExternal(ref eloc) =>
LocWithOpt {
filename: /* FIXME (#2543) */ copy (*eloc).filename,
line: (*eloc).line + loc.line - 1u,
col: if loc.line == 1 {eloc.col + loc.col} else {loc.col},
file: None}
}
}
@ -368,7 +361,6 @@ pub impl CodeMap {
expn_info: sp.expn_info
})
}
FssExternal(_) => sp
}
}