mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:27:35 +00:00
LibCpp: Consider declarations inside a function's body
... in FunctionDeclaration::declarations()
This commit is contained in:
parent
ab79599a5e
commit
b5da0b71e5
1 changed files with 4 additions and 0 deletions
|
@ -61,6 +61,10 @@ NonnullRefPtrVector<Declaration> FunctionDeclaration::declarations() const
|
|||
for (auto& arg : m_parameters) {
|
||||
declarations.append(arg);
|
||||
}
|
||||
|
||||
if (m_definition)
|
||||
declarations.append(m_definition->declarations());
|
||||
|
||||
return declarations;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue