public function AddTypeDef(
        \Peg\Lib\Definitions\Element\TypeDef $typedef,
        $header,
        $namespace="\\"
    )
    {
        $this->AddHeader($header);

        $this->headers[$header]->AddTypeDef($typedef, $namespace);
    }
public function AddTypeDef(
        \Peg\Lib\Definitions\Element\TypeDef $typedef,
        $header,
        $namespace="\\"
    )
    {
        $this->AddHeader($header);

        $this->headers[$header]->AddTypeDef($typedef, $namespace);
    }
public function AddTypeDef ( \ Peg \ Lib \ Definitions \ Element \ TypeDef $ typedef , $ header , $ namespace = "\\" ) { $ this -> AddHeader ( $ header ) ; $ this -> headers [ $ header ] -> AddTypeDef ( $ typedef , $ namespace ) ; }
Adds a type definition to the symbols table.
@param \Peg\Lib\Definitions\Element\TypeDef $typedef
@param string $header Name of header file where the constant resides.
@param string $namespace If omitted the constant is added at a global scope.
Adds a type definition to the symbols table .