Scan out internal definitions during compilation