src/StaticAnalyser.php
public function fromCode($code, $context)
    {
        $tokens = token_get_all($code);

        return $this->fromTokens($tokens, $context);
    }
public function fromCode($code, $context)
    {
        $tokens = token_get_all($code);

        return $this->fromTokens($tokens, $context);
    }
public function fromCode ( $ code , $ context ) { $ tokens = token_get_all ( $ code ) ; return $ this -> fromTokens ( $ tokens , $ context ) ; }
Extract and process all doc-comments from the contents.

@param string  $code    PHP code. (including <?php tags)
@param Context $context The original location of the contents.

@return Analysis
Extract and process all doc - comments from the contents .