# HG changeset patch # User Aziz K?ksal # Date 1203819542 -3600 # Node ID 139c9a6a39a8ba73280fa96b039ddcd9e49a2405 # Parent 47c5099562c72fd310f667933754337bc14641f8 Fixed getDDocComment(). diff -r 47c5099562c7 -r 139c9a6a39a8 trunk/src/dil/doc/Doc.d --- a/trunk/src/dil/doc/Doc.d Sun Feb 24 03:11:39 2008 +0100 +++ b/trunk/src/dil/doc/Doc.d Sun Feb 24 03:19:02 2008 +0100 @@ -52,10 +52,11 @@ DDocComment getDDocComment(Node node) { DDocParser p; - p.parse(getDDocText(getDocTokens(node))); - if (p.sections.length) - return new DDocComment(p.sections, p.summary, p.description); - return null; + auto docTokens = getDocTokens(node); + if (!docTokens.length) + return null; + p.parse(getDDocText(docTokens)); + return new DDocComment(p.sections, p.summary, p.description); } /// Strips leading and trailing whitespace characters.