Ejemplo n.º 1
0
 /**
  * Parses a function definition and adds it to the functions array.
  *
  * @param DocBlox_Reflection_TokenIterator $tokens Tokens to interpret with the
  *      pointer at the token to be processed.
  *
  * @return void
  */
 protected function processFunction(DocBlox_Reflection_TokenIterator $tokens)
 {
     $this->resetTimer('function');
     $function = new DocBlox_Reflection_Function();
     $function->setFilename($this->filename);
     $function->setNamespace($this->active_namespace);
     $function->setNamespaceAliases($this->namespace_aliases);
     $function->setDefaultPackageName($this->getDefaultPackageName());
     $function->parseTokenizer($tokens);
     $this->functions[$function->getName()] = $function;
     $this->debugTimer('>> Processed function ' . $function->getName(), 'function');
 }
Ejemplo n.º 2
0
  protected function processFunction(DocBlox_TokenIterator $tokens)
  {
    $this->resetTimer('function');

    $function = new DocBlox_Reflection_Function();
    $function->setNamespace($this->active_namespace);
    $function->parseTokenizer($tokens);

    $this->debugTimer('>> Processed function '.$function->getName(), 'function');

    $this->functions[$function->getName()] = $function;
  }