Skip to content

Instantly share code, notes, and snippets.

@drhodes
Created August 25, 2012 05:14
Show Gist options
  • Save drhodes/3461123 to your computer and use it in GitHub Desktop.
Save drhodes/3461123 to your computer and use it in GitHub Desktop.
Type annotated file positions
$ cat hello.rs
fn main() {
let temp = 0;
io::println(~"Hello world!");
}
$ rustc --pretty pos ./hello.rs | typelist.py
<intrinsic> 12 8 12 30 fn() -> *()
<intrinsic> 12 8 12 35 *()
<intrinsic> 12 8 12 43 *intrinsic::tydesc
./hello.rs 3 15 3 16 int
./hello.rs 4 4 4 15 fn(&str)
./hello.rs 4 17 4 31 ~str
./hello.rs 4 16 4 31 ~str
./hello.rs 4 4 4 33 ()
@drhodes
Copy link
Author

drhodes commented Aug 25, 2012

./hello.rs 3 15 3 16 int
filename, (line, col) to (line,col)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment