Home
last modified time | relevance | path

Searched refs:UString (Results 1 - 25 of 66) sorted by relevance

123

/arkcompiler/ets_frontend/es2panda/parser/program/
H A Dprogram.h130 sourceCode_ = util::UString(sourceCode, Allocator()); in SetSource()
131 sourceFile_ = util::UString(sourceFile, Allocator()); in SetSource()
138 recordName_ = util::UString(recordName, Allocator()); in SetRecordName()
140 formatedRecordName_ = util::UString(formatedRecordName, Allocator()); in SetRecordName()
245 util::UString sourceCode_ {};
246 util::UString sourceFile_ {};
247 util::UString recordName_ {};
248 util::UString formatedRecordName_ {};
/arkcompiler/ets_frontend/ets2panda/util/
H A DimportPathManager.cpp53 auto resolvedPath = UString(currentDirectory, allocator_); in ResolvePath()
64 return AppendExtensionOrIndexFileIfOmitted(UString(baseUrl, allocator_).View()); in ResolvePath()
86 return AppendExtensionOrIndexFileIfOmitted(UString(resolvedPath.value(), allocator_).View()); in ResolvePath()
94 return UString(baseUrl, allocator_).View(); in ResolvePath()
119 AddToParseList(UString(filePath, allocator_).View(), importFlags); in UnixWalkThroughDirectoryAndAddToParseList()
142 AddToParseList(UString(entry.path().string(), allocator_).View(), importFlags); in AddToParseList()
244 return UString(realPath, allocator_).View(); in GetRealPath()
260 return GetRealPath(UString(indexFilePath, allocator_).View()); in AppendExtensionOrIndexFileIfOmitted()
272 return GetRealPath(UString(path.Mutf8().append(extension), allocator_).View()); in AppendExtensionOrIndexFileIfOmitted()
H A Dustring.h247 class UString { class
249 UString() = default;
250 explicit UString(ArenaAllocator *allocator) : allocator_(allocator) {} in UString() function in ark::es2panda::util::UString
251 explicit UString(const std::string &str, ArenaAllocator *allocator) : UString(allocator) in UString() function in ark::es2panda::util::UString
257 explicit UString(const std::string_view &str, ArenaAllocator *allocator) : UString(allocator) in UString() function in ark::es2panda::util::UString
263 explicit UString(const util::StringView &str, ArenaAllocator *allocator) : UString(str.Utf8(), allocator) {} in UString() function in ark::es2panda::util::UString
265 DEFAULT_COPY_SEMANTIC(UString);
[all...]
H A Dpath.cpp34 path_ = util::UString(path, allocator).View(); in Initializer()
39 absolutePath_ = util::UString(os::GetAbsolutePath(path_.Utf8()), allocator_).View(); in Initializer()
103 basePath_ = util::UString(basePath.substr(0, basePath.length() - 1), allocator_).View(); in InitializeBasePath()
105 basePath_ = util::UString(basePath, allocator_).View(); in InitializeBasePath()
/arkcompiler/ets_frontend/ets2panda/varbinder/
H A DtsBinding.h27 class TSBinding : public util::UString {
30 : util::UString(std::string {TS_PREFIX}, allocator) in TSBinding()
H A DprivateBinding.h22 class PrivateBinding : public util::UString {
25 : util::UString(std::string {PRIVATE_PREFIX}, allocator) in PrivateBinding()
H A DrecordTable.cpp79 return util::UString(moduleName.Mutf8() + compiler::Signatures::METHOD_SEPARATOR.data() + in FormRecordName()
85 util::UString recordName(recordTable_->program_->Allocator()); in FormRecordName()
/arkcompiler/ets_frontend/es2panda/binder/
H A DtsBinding.h27 class TSBinding : public util::UString {
30 : util::UString(std::string {TS_PREFIX}, allocator) in TSBinding()
H A Dscope.cpp289 return util::UString(scopeName.str(), allocator_).View(); in GetSelfScopeName()
294 return util::UString(scopeName.str(), allocator_).View(); in GetSelfScopeName()
297 return util::UString(scopeName.str(), allocator_).View(); in GetSelfScopeName()
302 return util::UString(util::Helpers::CLASS_SCOPE_TAG.data(), allocator_).View(); in GetScopeTag()
396 fullScopeName_ = util::UString(fullScopeName.str(), allocator_).View(); in SetFullScopeNames()
579 internalName_ = util::UString(internalName.str(), allocator_).View(); in BindNameWithScopeInfo()
624 return util::UString(util::Helpers::CTOR_TAG.data(), allocator_).View(); in GetScopeTag()
630 return util::UString(util::Helpers::STATIC_METHOD_TAG.data(), allocator_).View(); in GetScopeTag()
632 return util::UString(util::Helpers::METHOD_TAG.data(), allocator_).View(); in GetScopeTag()
634 return util::UString(uti in GetScopeTag()
[all...]
/arkcompiler/ets_frontend/es2panda/util/
H A Dustring.h267 class UString { class
269 UString() = default;
270 explicit UString(ArenaAllocator *allocator) : allocator_(allocator) {} in UString() function in panda::es2panda::util::UString
271 explicit UString(const std::string &str, ArenaAllocator *allocator) : UString(allocator) in UString() function in panda::es2panda::util::UString
277 DEFAULT_COPY_SEMANTIC(UString);
278 DEFAULT_MOVE_SEMANTIC(UString);
279 ~UString() = default;
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/topLevelStmts/
H A DglobalClassHandler.h75 util::UString ReplaceSpecialCharacters(util::UString *word) const;
H A DglobalClassHandler.cpp153 util::UString GlobalClassHandler::ReplaceSpecialCharacters(util::UString *word) const in ReplaceSpecialCharacters()
207 return util::UString(text, allocator_); in ReplaceSpecialCharacters()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/
H A Dutil.cpp43 util::UString const s = GenName(allocator); in Gensym()
47 util::UString GenName(ArenaAllocator *const allocator) in GenName()
52 return util::UString {GENSYM_CORE + std::to_string(++gensymCounter), allocator}; in GenName()
H A Dutil.h28 util::UString GenName(ArenaAllocator *allocator);
/arkcompiler/ets_frontend/ets2panda/parser/
H A DETSFormattedParser.cpp266 util::UString source {sourceCode, Allocator()}; in CreateStatement()
304 util::UString source {sourceCode, Allocator()}; in CreateStatements()
370 util::UString source {sourceCode, Allocator()}; in CreateClassElement()
394 util::UString source {sourceCode, Allocator()}; in CreateClassDeclaration()
436 util::UString source {sourceCode, Allocator()}; in CreateConstructorDefinition()
467 util::UString source {sourceCode, Allocator()}; in CreateExpression()
499 util::UString source {sourceCode, Allocator()}; in CreateTopLevelStatement()
519 util::UString source {sourceCode, Allocator()}; in CreateTypeAnnotation()
/arkcompiler/ets_frontend/ets2panda/parser/program/
H A Dprogram.h195 sourceCode_ = util::UString(sourceFile.source, Allocator()).View(); in SetSource()
197 sourceFileFolder_ = util::UString(sourceFile.fileFolder, Allocator()).View(); in SetSource()
198 resolvedFilePath_ = util::UString(sourceFile.resolvedPath, Allocator()).View(); in SetSource()
/arkcompiler/ets_frontend/ets2panda/ir/ets/
H A DetsReExportDeclaration.cpp30 userPaths_.emplace_back(util::UString(path, allocator).View()); in ETSReExportDeclaration()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DenumLowering.h32 static util::UString GetEnumClassName(checker::ETSChecker *checker, const ir::TSEnumDeclaration *const enumDecl);
61 static void AppendParentNames(util::UString &qualifiedName, const ir::AstNode *const node);
H A DinterfaceObjectLiteralLowering.cpp62 util::UString fieldName(std::string("_"), allocator); in CreateAnonClassField()
104 util::UString fieldName(std::string("_"), allocator); in CreateAnonClassFieldGetterSetter()
209 util::UString className(util::StringView("$anonymous_class$"), checker->Allocator()); in GenerateAnonClassTypeFromInterface()
/arkcompiler/ets_frontend/ets2panda/ir/ts/
H A DtsQualifiedName.cpp85 util::UString packageName(allocator); in ToString()
108 util::UString packageName(allocator); in BaseToString()
/arkcompiler/ets_frontend/es2panda/lexer/
H A Dlexer.h59 util::UString str;
156 void ScanStringUnicodePart(util::UString *str);
217 util::UString str(Allocator()); in ScanString()
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A Ddynamic.cpp125 util::UString paramName("p" + std::to_string(i), Allocator()); in CreateDynamicCallIntrinsic()
215 map.emplace(util::UString(key, Allocator()).View(), method->Function()); in ResolveDynamicCallExpression()
416 util::UString(ark::os::RemoveExtension(import->ResolvedSource()->Str().Mutf8()), Allocator()).View())); in ClassInitializerFromImport()
496 util::UString thisParamName(std::string("this"), Allocator());
505 util::UString(std::string("p") + std::to_string(callParams.size()), Allocator()).View();
588 import->AssemblerName() = util::UString(assemblyName, Allocator()).View();
617 util::UString jsvalueParamName(std::string("jsvalue_param"), Allocator());
H A DtypeCreation.cpp129 arrayType->SetAssemblerName(util::UString(ss.str(), Allocator()).View()); in CreateETSArrayType()
575 util::UString localName(declNode->AsClassDefinition()->LocalPrefix(), Allocator()); in CreateNewETSObjectType()
595 util::UString(prefix.Mutf8() + compiler::Signatures::METHOD_SEPARATOR.data() + assemblerName.Mutf8(), in CreateNewETSObjectType()
622 util::UString param(std::to_string(i), Allocator()); in CreateBuiltinArraySignatureInfo()
634 auto internalName = util::UString(ss.str(), Allocator()).View(); in CreateBuiltinArraySignatureInfo()
/arkcompiler/ets_frontend/ets2panda/evaluate/
H A DdebugInfoStorage.cpp157 util::UString sourceFilePath(std::string_view(context.extractor->GetSourceFile(methodId)), allocator_); in FillEvaluateContext()
201 auto recordNameView = util::UString(recordName, allocator_).View(); in LazyLoadRecords()
/arkcompiler/ets_frontend/ets2panda/lexer/
H A Dlexer.h96 util::UString str;
271 void ScanStringUnicodePart(util::UString *str);
351 util::UString str(Allocator()); in ScanString()

Completed in 16 milliseconds

123