Lines Matching defs:importPath
624 const ir::StringLiteral *const importPath)
644 GetExternalProgram(item->GetETSImportDeclarations()->ResolvedSource()->Str(), importPath);
657 const util::StringView &imported, const ir::StringLiteral *const importPath)
660 ThrowError(importPath->Start(), "Use the default import syntax to import a default exported element");
664 ThrowError(importPath->Start(),
669 ThrowError(importPath->Start(), "Imported element not exported '" + var->Declaration()->Name().Mutf8() + "'");
673 static util::StringView ImportLocalName(const ir::ImportSpecifier *importSpecifier, const ir::StringLiteral *importPath,
679 auto fnc = [&importPath, &imported](const auto &savedSpecifier) {
680 return importPath->Str() != savedSpecifier.first && imported == savedSpecifier.second;
686 importSpecifiers.push_back(std::make_pair(importPath->Str(), imported));
695 const ir::StringLiteral *const importPath, bool overloadAllowed)
706 ThrowError(importPath->Start(), RedeclarationErrorMessageAssembler(var, otherVar, localName));
718 const ir::StringLiteral *const importPath = import->Source();
743 const auto localName = ImportLocalName(importSpecifier, importPath, imported, importSpecifiers_, TopScope());
746 ir::ETSImportDeclaration *implDecl = FindImportDeclInReExports(import, viewedReExport, imported, importPath);
752 ThrowError(importPath->Start(), "Cannot find imported element '" + imported.Mutf8() + "'");
755 ValidateImportVariable(var, import, imported, importPath);
759 if (DetectNameConflict(localName, var, varInGlobalClassScope, importPath, true) ||
760 DetectNameConflict(localName, var, previouslyImportedVariable, importPath, false)) {
775 const ir::StringLiteral *const importPath)
784 ThrowError(importPath->Start(), "Cannot find default imported element in the target");
791 const ir::StringLiteral *importPath)
804 ThrowError(importPath->Start(),
805 "Cannot find index.[sts|ts] or package module in folder: " + importPath->Str().Mutf8());
808 ThrowError(importPath->Start(), "Cannot find import: " + importPath->Str().Mutf8());
818 const ir::StringLiteral *const importPath = path;
827 auto record = GetExternalProgram(sourceName, importPath);
843 auto var = FindStaticBinding(record, importPath);