3 * Extracts use statements (include and friends) an thheir documentation from php code.
\r
4 * @author Ulf Wendel <ulf.wendel@redsys.de>
\r
7 class PhpdocUseParser extends PhpdocParserCore {
\r
10 * Structure of an empty use entry.
\r
13 var $emptyUse = array(
\r
21 * List of allowed tags in use doc comments.
\r
24 var $useTags = array(
\r
31 "copyright" => true,
\r
36 "deprecated" => true,
\r
47 * Takes the result from getPhpdocParagraphs() and interprets it.
\r
50 function analyseUse($para) {
\r
52 $use = $this->emptyUse;
\r
53 $use["file"] = $para["file"];
\r
55 if (""!=$para["doc"]) {
\r
57 $use = $this->analyseTags($this->getTags($para["doc"]), $use, $this->useTags);
\r
59 list($msg, $use) = $this->checkParserErrors($use, "use (include and friends)");
\r
61 $this->warn->addDocWarning($this->currentFile, "use", $use["file"], $msg, "mismatch");
\r
63 list($use["sdesc"], $use["desc"]) = $this->getDescription($para["doc"]);
\r
65 $use["undoc"] = false;
\r
68 $use["type"] = $para["type"];
\r
71 } // end func analyseUse
\r
73 } // end class PhpdocUseParser
\r