Lines Matching defs:importName
321 std::string importName = token.value;
322 if (importName.empty()) {
327 if (!CheckImport(importName)) {
332 auto iter = allAsts_.find(importName);
336 StringHelper::Format("can not find idl file from import name '%s'", importName.c_str()));
347 LogError(__func__, __LINE__, token, StringHelper::Format("multiple import of '%s'", importName.c_str()));
1884 bool Parser::CheckImport(const std::string &importName)
1887 if (!std::regex_match(importName.c_str(), RE_IMPORT)) {
1888 LogError(__func__, __LINE__, StringHelper::Format("invalid impirt name '%s'", importName.c_str()));
1892 if (!std::regex_match(importName.c_str(), RE_PACKAGE_OR_IMPORT_SM)) {
1893 LogError(__func__, __LINE__, StringHelper::Format("invalid impirt name '%s'", importName.c_str()));
1897 std::string idlFilePath = Options::GetInstance().GetImportFilePath(importName);