original_string: public function findAnchoredDot($id)
      {
          $chunks = explode('.', $id);
          $first  = array_shift($chunks);
          if ($first !== '') {
              throw new Mustache_Exception_InvalidArgumentException(sprintf('Unexpected id for findAnchoredDot: %s', $id));
          }
  
          $value  = $this->last();
  
          foreach ($chunks as $chunk) {
              if ($value === '') {
                  return $value;
              }
  
              $value = $this->findVariableInStack($chunk, array($value));
          }
  
          return $value;
      }
code: public function findAnchoredDot($id)
      {
          $chunks = explode('.', $id);
          $first  = array_shift($chunks);
          if ($first !== '') {
              throw new Mustache_Exception_InvalidArgumentException(sprintf('Unexpected id for findAnchoredDot: %s', $id));
          }
  
          $value  = $this->last();
  
          foreach ($chunks as $chunk) {
              if ($value === '') {
                  return $value;
              }
  
              $value = $this->findVariableInStack($chunk, array($value));
          }
  
          return $value;
      }
code_tokens: public function findAnchoredDot ( $ id ) { $ chunks = explode ( '.' , $ id ) ; $ first = array_shift ( $ chunks ) ; if ( $ first !== '' ) { throw new Mustache_Exception_InvalidArgumentException ( sprintf ( 'Unexpected id for findAnchoredDot: %s' , $ id ) ) ; } $ value = $ this -> last ( ) ; foreach ( $ chunks as $ chunk ) { if ( $ value === '' ) { return $ value ; } $ value = $ this -> findVariableInStack ( $ chunk , array ( $ value ) ) ; } return $ value ; }
docstring: Find an 'anchored dot notation' variable in the Context stack.
  
  This is the same as findDot(), except it looks in the top of the context
  stack for the first value, rather than searching the whole context stack
  and starting from there.
  
  @see Mustache_Context::findDot
  
  @throws Mustache_Exception_InvalidArgumentException if given an invalid anchored dot $id
  
  @param string $id Dotted variable selector
  
  @return mixed Variable value, or '' if not found
docstring_tokens: Find an anchored dot notation variable in the Context stack .