X-Git-Url: https://gitweb.ps.run/toc/blobdiff_plain/3715a3f575b615f66e8ea7e57f83849e8bae4deb..17860defa84c6d8bc0e8bc088a7e09361f17db07:/src/repr_get.h diff --git a/src/repr_get.h b/src/repr_get.h index 2d321b0..7436dde 100644 --- a/src/repr_get.h +++ b/src/repr_get.h @@ -153,11 +153,11 @@ Namespace getNamespace(TocParser::NamespaceDeclContext * ctx, std::shared_ptrfuncDecl() != nullptr) { - result.functions.push_back(getFunction(d->funcDecl()->func(), result.ctx)); + result.ctx->functions.push_back(getFunction(d->funcDecl()->func(), result.ctx)); } if (d->structDecl() != nullptr) { - result.structs.push_back(getStruct(d->structDecl(), result.ctx)); + result.ctx->structs.push_back(getStruct(d->structDecl(), result.ctx)); } if (d->namespaceDecl() != nullptr) { @@ -178,11 +178,11 @@ Program getProgram(TocParser::ProgContext * ctx, std::shared_ptr parent } if (d->funcDecl() != nullptr) { - result.functions.push_back(getFunction(d->funcDecl()->func(), result.ctx)); + result.ctx->functions.push_back(getFunction(d->funcDecl()->func(), result.ctx)); } if (d->structDecl() != nullptr) { - result.structs.push_back(getStruct(d->structDecl(), result.ctx)); + result.ctx->structs.push_back(getStruct(d->structDecl(), result.ctx)); } if (d->namespaceDecl() != nullptr) {