Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fredemmott/5d2509426f83c054d057456a06a83c75 to your computer and use it in GitHub Desktop.
Save fredemmott/5d2509426f83c054d057456a06a83c75 to your computer and use it in GitHub Desktop.
fredemmott@fredemmott-fb /tmp % cat test.hack
<<__EntryPoint>>
function main(mixed $x): void {
$x->:foo;
}
fredemmott@fredemmott-fb /tmp % hh_single_compile test.hack
# test.hack starts here
.filepath "test.hack";
.hh_file 1;
.main (1,1) {
Int 1
RetC
}
.function {} ["__EntryPoint"("""y:0:{}""")] (2,4) <"HH\\void" N > main(<"HH\\mixed" N > $x) {
.srcloc 3:3,3:4;
CGetL $x
NullUninit
NullUninit
.srcloc 3:3,3:10;
String "foo"
.srcloc 3:3,3:10;
FCallObjMethodD <> 1 1 "0" - "" "" NullThrows "getAttribute"
.srcloc 3:3,3:11;
PopC
.srcloc 4:2,4:2;
Null
RetC
}
# test.hack ends here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment