Revert "Clang import: Throw InternalError when nodeType is unknown"

This reverts commit 589174b92d.
This commit is contained in:
Daniel Marjamäki 2020-12-31 18:08:55 +01:00
parent 589174b92d
commit b16944b310
1 changed files with 1 additions and 1 deletions

View File

@ -1192,7 +1192,7 @@ Token *clangimport::AstNode::createTokens(TokenList *tokenList)
createScope(tokenList, Scope::ScopeType::eWhile, body, whiletok);
return nullptr;
}
throw InternalError(tokenList->back(), "ClangImport::AstNode::createTokens: Unhandled nodeType: nodeType");
return addtoken(tokenList, "?" + nodeType + "?");
}
Token * clangimport::AstNode::createTokensCall(TokenList *tokenList)