diff options
| author | Patrick Schönberger | 2021-08-11 18:02:56 +0200 |
|---|---|---|
| committer | Patrick Schönberger | 2021-08-11 18:02:56 +0200 |
| commit | 17860defa84c6d8bc0e8bc088a7e09361f17db07 (patch) | |
| tree | 87d602a2d4419307e73928bc1993a6295ba2cb39 /src/repr_get.h | |
| parent | 3715a3f575b615f66e8ea7e57f83849e8bae4deb (diff) | |
| download | toc-17860defa84c6d8bc0e8bc088a7e09361f17db07.tar.gz toc-17860defa84c6d8bc0e8bc088a7e09361f17db07.zip | |
structs and functions in ctx
Diffstat (limited to 'src/repr_get.h')
| -rw-r--r-- | src/repr_get.h | 8 |
1 files changed, 4 insertions, 4 deletions
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_ptr<Co }
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)
{
@@ -178,11 +178,11 @@ Program getProgram(TocParser::ProgContext * ctx, std::shared_ptr<Context> 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)
{
|
