irm-1.6-b3/lib/Savant2/PHPCodeAnalyzer.php
/**
	* Handle a 1 char token
	* @access private
	*/
Handle a 1 char token
@access private
Handle a 1 char token @access private
function handleSimpleToken($token)
	{
		if ($token !== ";")
		{
			$this->currentStrings .= $token;
		}
		switch($token)
		{
			case "(":
				if ($this->staticClass !== false)
				{
					if (!isset($this->calledStaticMethods[$this->staticClass][$this->currentString]))
					{
						$this->calledStaticMethods[$this->staticClass][$this->currentString] 
							= array();
					}
					$this->calledStaticMethods[$this->staticClass][$this->currentString][] 
						= $this->lineNumber;
					$this->staticClass = false;
				}
				else if ($this->currentVar !== false)
				{
					if (!isset($this->calledMethods[$this->currentVar][$this->currentString]))
					{
						$this->calledMethods[$this->currentVar][$this->currentString] = array();
					}
					$this->calledMethods[$this->currentVar][$this->currentString][] = $this->lineNumber;
					$this->currentVar = false;
				}
				else if ($this->inNew !== false)
				{
					$this->classInstantiated();
				}
				else if ($this->currentString !== null)
				{
					$this->functionCalled();
				}
			break;
			case "=":
			case ";":
				if ($this->inNew !== false)
				{
					$this->classInstantiated();
				}
				else if ($this->inInclude !== false)
				{
					$this->fileIncluded();
				}
				else if ($this->currentVar !== false)
				{
					$this->useMemberVar();
				}
				$this->currentString = null;
				$this->currentStrings = null;
			break;
		}
	}
function handleSimpleToken ( $ token ) { if ( $ token !== " ; " ) { $ this -> currentStrings .= $ token ; } switch ( $ token ) { case " ( " : if ( $ this -> staticClass !== false ) { if ( ! isset ( $ this -> calledStaticMethods [ $ this -> staticClass ] [ $ this -> currentString ] ) ) { $ this -> calledStaticMethods [ $ this -> staticClass ] [ $ this -> currentString ] = array ( ) ; } $ this -> calledStaticMethods [ $ this -> staticClass ] [ $ this -> currentString ] [ ] = $ this -> lineNumber ; $ this -> staticClass = false ; } else if ( $ this -> currentVar !== false ) { if ( ! isset ( $ this -> calledMethods [ $ this -> currentVar ] [ $ this -> currentString ] ) ) { $ this -> calledMethods [ $ this -> currentVar ] [ $ this -> currentString ] = array ( ) ; } $ this -> calledMethods [ $ this -> currentVar ] [ $ this -> currentString ] [ ] = $ this -> lineNumber ; $ this -> currentVar = false ; } else if ( $ this -> inNew !== false ) { $ this -> classInstantiated ( ) ; } else if ( $ this -> currentString !== null ) { $ this -> functionCalled ( ) ; } break ; case " = " : case " ; " : if ( $ this -> inNew !== false ) { $ this -> classInstantiated ( ) ; } else if ( $ this -> inInclude !== false ) { $ this -> fileIncluded ( ) ; } else if ( $ this -> currentVar !== false ) { $ this -> useMemberVar ( ) ; } $ this -> currentString = null ; $ this -> currentStrings = null ; break ; } }
Handle a 1 char token
 @access private
Handle a 1 char token @access private
// method is called //$this->currentString = null;