ext/include/iv/ast-serializer.h in iv-phonic-0.0.3 vs ext/include/iv/ast-serializer.h in iv-phonic-0.0.5
- old
+ new
@@ -69,9 +69,15 @@
Append("{\"type\":\"function_statement\",\"def\":");
func->function()->Accept(this);
Append('}');
}
+ void Visit(const FunctionDeclaration* func) {
+ Append("{\"type\":\"function_declaration\",\"def\":");
+ func->function()->Accept(this);
+ Append('}');
+ }
+
void Visit(const VariableStatement* var) {
Append("{\"type\":");
if (var->IsConst()) {
Append("\"const\",\"decls\":[");
} else {