mirror of
https://github.com/dlang/tools.git
synced 2025-04-26 21:22:22 +03:00
Test extractor: visit the entire AST tree
This commit is contained in:
parent
a333dda1eb
commit
e9a35d0b69
1 changed files with 4 additions and 5 deletions
|
@ -54,11 +54,10 @@ class TestVisitor : ASTVisitor
|
|||
|
||||
override void visit(const Declaration decl)
|
||||
{
|
||||
if (decl.unittest_ !is null)
|
||||
{
|
||||
if (hasDdocHeader(sourceCode, decl))
|
||||
print(decl.unittest_);
|
||||
}
|
||||
if (decl.unittest_ !is null && hasDdocHeader(sourceCode, decl))
|
||||
print(decl.unittest_);
|
||||
|
||||
decl.accept(this);
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue