LibCpp: Consider declarations inside a function's body

... in FunctionDeclaration::declarations()
This commit is contained in:
Itamar 2021-05-30 23:20:04 +03:00 committed by Andreas Kling
parent ab79599a5e
commit b5da0b71e5
Notes: sideshowbarker 2024-07-18 17:02:44 +09:00

View file

@ -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;
}