From 17860defa84c6d8bc0e8bc088a7e09361f17db07 Mon Sep 17 00:00:00 2001 From: Patrick Schönberger Date: Wed, 11 Aug 2021 18:02:56 +0200 Subject: structs and functions in ctx --- src/repr_get.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '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) { -- cgit v1.2.3