public function getStart() : int {
        $child = $this->getChildNodesAndTokens()->current();
        if ($child instanceof Node) {
            return $child->getStart();
        } elseif ($child instanceof Token) {
            return $child->start;
        }
        throw new \Exception("Unknown type in AST");
    }
public function getStart() : int {
        $child = $this->getChildNodesAndTokens()->current();
        if ($child instanceof Node) {
            return $child->getStart();
        } elseif ($child instanceof Token) {
            return $child->start;
        }
        throw new \Exception("Unknown type in AST");
    }
public function getStart ( ) : int { $ child = $ this -> getChildNodesAndTokens ( ) -> current ( ) ; if ( $ child instanceof Node ) { return $ child -> getStart ( ) ; } elseif ( $ child instanceof Token ) { return $ child -> start ; } throw new \ Exception ( "Unknown type in AST" ) ; }
Gets start position of Node, not including leading comments and whitespace.
@return int
@throws \Exception
Gets start position of Node not including leading comments and whitespace .