public function getLeadingCommentAndWhitespaceText() : string {
        // TODO re-tokenize comments and whitespace
        $fileContents = $this->getFileContents();
        foreach ($this->getDescendantTokens() as $token) {
            return $token->getLeadingCommentsAndWhitespaceText($fileContents);
        }
    }
public function getLeadingCommentAndWhitespaceText() : string {
        // TODO re-tokenize comments and whitespace
        $fileContents = $this->getFileContents();
        foreach ($this->getDescendantTokens() as $token) {
            return $token->getLeadingCommentsAndWhitespaceText($fileContents);
        }
    }
public function getLeadingCommentAndWhitespaceText ( ) : string { // TODO re-tokenize comments and whitespace $ fileContents = $ this -> getFileContents ( ) ; foreach ( $ this -> getDescendantTokens ( ) as $ token ) { return $ token -> getLeadingCommentsAndWhitespaceText ( $ fileContents ) ; } }
Gets string representing Node's leading comment and whitespace text.
@return string
Gets string representing Node s leading comment and whitespace text .