Home
last modified time | relevance | path

Searched refs:endPos (Results 1 – 4 of 4) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
Djs_file_path.cpp39 auto endPos = filePath.find_last_of('.'); in GetFileName() local
40 if (endPos != std::string::npos) { in GetFileName()
41 return filePath.substr(beginPos, endPos - beginPos); in GetFileName()
69 auto endPos = subPath.find("/"); in GetHapName() local
70 if (endPos == std::string::npos) { in GetHapName()
74 return subPath.substr(0, endPos); in GetHapName()
/arkcompiler/ets_frontend/es2panda/parser/
DparserImpl.cpp946 lexer::SourcePosition endPos = element->End(); in ParseTsTupleElement() local
948 element->SetRange({startPos, endPos}); in ParseTsTupleElement()
1254 lexer::SourcePosition endPos; in ParseTsTypePredicate() local
1258 endPos = parameterName->End(); in ParseTsTypePredicate()
1260 result->SetRange({startPos, endPos}); in ParseTsTypePredicate()
1268 endPos = typeAnnotation->End(); in ParseTsTypePredicate()
1272 result->SetRange({startPos, endPos}); in ParseTsTypePredicate()
DstatementParser.cpp1265 lexer::SourcePosition endPos = exprNode->End(); in ParseExpressionStatement() local
1268 exprStatementNode->SetRange({startPos.token.Start(), endPos}); in ParseExpressionStatement()
2518 lexer::SourcePosition endPos = lexer_->GetToken().End(); in ParseExportNamedSpecifiers() local
2531 exportDeclaration->SetRange({startLoc, endPos}); in ParseExportNamedSpecifiers()
DexpressionParser.cpp1288 const lexer::SourcePosition &endPos = rightExpr->End(); in ParseBinaryExpression() local
1290 rightExpr->SetRange({left->Start(), endPos}); in ParseBinaryExpression()