diff options
Diffstat (limited to 'src/libsyntax/codemap.rs')
| -rw-r--r-- | src/libsyntax/codemap.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs index 91aef76061e..8f42e1b1a59 100644 --- a/src/libsyntax/codemap.rs +++ b/src/libsyntax/codemap.rs @@ -147,19 +147,6 @@ pub struct Loc { file: @FileMap, line: uint, col: CharPos } -/// An absolute offset within the CodeMap (not a relative offset within a -/// a single FileMap) -pub struct FilePos { - ch: CharPos, byte: BytePos -} - -impl FilePos : cmp::Eq { - pure fn eq(other: &FilePos) -> bool { - self.ch == (*other).ch && self.byte == (*other).byte - } - pure fn ne(other: &FilePos) -> bool { !self.eq(other) } -} - pub enum ExpnInfo { ExpandedFrom({call_site: span, callie: {name: ~str, span: Option<span>}}) @@ -167,8 +154,6 @@ pub enum ExpnInfo { pub type FileName = ~str; -pub type LookupFn = pure fn(FilePos) -> uint; - pub struct FileLines { file: @FileMap, lines: ~[uint] |
