if(!var.precision.empty())
decl += format("%s ", var.precision);
decl += format("%s %s", var.type, var.name);
- if(var.linked_declaration)
+ if(var.source==BUILTIN_SOURCE)
+ decl += " (builtin)";
+ else if(var.linked_declaration)
decl += " (linked)";
append(decl);
head += format(" %s", block.instance_name);
if(block.array)
head += "[]";
- if(block.linked_block)
+ if(block.source==BUILTIN_SOURCE)
+ head += " (builtin)";
+ else if(block.linked_block)
head += " (linked)";
annotated_branch(head, block.members);
}
void DumpTree::visit(FunctionDeclaration &func)
{
string text = format("%%%d %s %s", get_label(func), func.return_type, func.name);
- if(!func.definition)
+ if(func.source==BUILTIN_SOURCE)
+ text += " (builtin)";
+ else if(!func.definition)
text += " (undefined)";
append(text);
begin_sub();