提交 8cba337c 编写于 作者: B Brian Anderson

Remove CodeMap.lookup_byte_pos

上级 d5e35e3e
......@@ -259,11 +259,6 @@ pub fn lookup_char_pos(&self, +pos: CharPos) -> Loc<CharPos> {
return self.lookup_pos(pos, lookup);
}
pub fn lookup_byte_pos(&self, +pos: BytePos) -> Loc<BytePos> {
pure fn lookup(pos: FilePos) -> uint { return pos.byte.to_uint(); }
return self.lookup_pos(pos, lookup);
}
pub fn lookup_char_pos_adj(&self, +pos: CharPos)
-> {filename: ~str, line: uint, col: CharPos, file: Option<@FileMap>}
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册