diff options
Diffstat (limited to 'source/slang/slang-doc-ast.cpp')
| -rw-r--r-- | source/slang/slang-doc-ast.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-doc-ast.cpp b/source/slang/slang-doc-ast.cpp index 7e83d5d59..e6259167b 100644 --- a/source/slang/slang-doc-ast.cpp +++ b/source/slang/slang-doc-ast.cpp @@ -76,7 +76,7 @@ static void _addDeclRec(Decl* decl, List<Decl*>& outDecls) { // Add the container - which could be a class, struct, enum, namespace, extension, generic // etc. Now add what the container contains - for (Decl* childDecl : containerDecl->members) + for (Decl* childDecl : containerDecl->getDirectMemberDecls()) { _addDeclRec(childDecl, outDecls); } @@ -85,7 +85,7 @@ static void _addDeclRec(Decl* decl, List<Decl*>& outDecls) /* static */ void ASTMarkupUtil::findDecls(ModuleDecl* moduleDecl, List<Decl*>& outDecls) { - for (Decl* decl : moduleDecl->members) + for (Decl* decl : moduleDecl->getDirectMemberDecls()) { _addDeclRec(decl, outDecls); } |
