/arkcompiler/runtime_core/libpandabase/tests/ |
D | expected_test.cpp | 30 return Unexpected {ErrorCode::First}; in helper() 34 return Unexpected {ErrorCode::Second}; in helper() 46 TEST(Expected, Unexpected) in TEST() argument 49 auto u = Unexpected(e); in TEST() 50 EXPECT_EQ(Unexpected<int>(1).Value(), 1); in TEST() 52 EXPECT_EQ(static_cast<const Unexpected<int> &>(u).Value(), 1); in TEST() 69 auto e2 = Expected<int, ErrorCode>(Unexpected(ErrorCode::First)); in TEST() 70 auto u = Unexpected(ErrorCode::Second); in TEST() 82 const auto e1 = Expected<int, ErrorCode>(Unexpected(ErrorCode::First)); in TEST() 84 EXPECT_EQ((Expected<int, ErrorCode>(Unexpected(ErrorCode::Second)).Error()), ErrorCode::Second); in TEST() [all …]
|
/arkcompiler/runtime_core/platforms/unix/libpandabase/ |
D | exec.cpp | 45 return Unexpected(Error(errno)); in Exec() 50 return Unexpected(Error(errno)); in Exec() 55 return Unexpected(Error("Process finished improperly")); in Exec()
|
D | file.h | 55 return Unexpected(Error(errno)); in Read() 74 return Unexpected(Error(errno)); in Write() 108 return Unexpected(Error(errno)); in GetFileSize() 152 return Unexpected(Error(errno)); in GetExecutablePath() 157 return Unexpected(Error(errno)); in GetExecutablePath() 171 return Unexpected(Error(errno)); in GetAbsolutePath()
|
D | library_loader_load.cpp | 34 return msg != nullptr ? Unexpected(Error(msg)) : Unexpected(Error("no error message")); in Load()
|
D | library_loader_resolve_symbol.cpp | 35 return msg != nullptr ? Unexpected(Error(msg)) : Unexpected(Error("no error message")); in ResolveSymbol()
|
/arkcompiler/runtime_core/libpandabase/utils/ |
D | expected.h | 27 class Unexpected final { 29 explicit Unexpected(E e) noexcept(std::is_nothrow_move_constructible_v<E>) : e_(std::move(e)) {} in Unexpected() function 44 ~Unexpected() = default; 46 DEFAULT_COPY_SEMANTIC(Unexpected); 47 NO_MOVE_SEMANTIC(Unexpected); 76 …Expected(Unexpected<E> e) noexcept(std::is_nothrow_move_constructible_v<E>) : v_(std::move(e.Value… in noexcept()
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
D | js_pandafile_executor.cpp | 67 THROW_REFERENCE_ERROR_AND_RETURN(thread, msg.c_str(), Unexpected(false)); in ExecuteFromFile() 86 THROW_REFERENCE_ERROR_AND_RETURN(thread, msg.c_str(), Unexpected(false)); in ExecuteFromFile() 102 return Unexpected(false); in ExecuteFromFile() 122 THROW_REFERENCE_ERROR_AND_RETURN(thread, msg.c_str(), Unexpected(false)); in ExecuteFromBuffer() 133 THROW_REFERENCE_ERROR_AND_RETURN(thread, msg.c_str(), Unexpected(false)); in ExecuteFromBuffer() 165 THROW_REFERENCE_ERROR_AND_RETURN(thread, msg.c_str(), Unexpected(false)); in ExecuteModuleBuffer() 184 THROW_REFERENCE_ERROR_AND_RETURN(thread, msg.c_str(), Unexpected(false)); in ExecuteModuleBuffer() 209 return Unexpected(false); in CommonExecuteBuffer() 256 THROW_REFERENCE_ERROR_AND_RETURN(thread, msg.c_str(), Unexpected(false)); in ExecuteFromBufferSecure() 267 THROW_REFERENCE_ERROR_AND_RETURN(thread, msg.c_str(), Unexpected(false)); in ExecuteFromBufferSecure() [all …]
|
/arkcompiler/runtime_core/platforms/windows/libpandabase/ |
D | file.h | 48 return Unexpected(Error(errno)); in Read() 67 return Unexpected(Error(errno)); in Write() 95 return Unexpected(Error(errno)); in GetFileSize() 132 return Unexpected(Error(errno)); in GetAbsolutePath()
|
D | library_loader.cpp | 28 …return Unexpected(Error(std::string("Failed to load library ") + filename.data() + std::string(", … in Load() 39 …return Unexpected(Error(std::string("Failed to resolve symbol ") + name.data() + std::string(", er… in ResolveSymbol()
|
D | file.cpp | 70 return Unexpected(Error(GetLastError())); in GetTmpPath() 81 return Unexpected(Error(GetLastError())); in GetExecutablePath()
|
/arkcompiler/ets_frontend/es2panda/test/parser/js/ |
D | test-switch-6-expected.txt | 1 SyntaxError: Unexpected token [test-switch-6.js:18:36]
|
D | new-expression-expected.txt | 1 SyntaxError: Unexpected token [new-expression.js:17:8]
|
D | test-switch-1-expected.txt | 1 SyntaxError: Unexpected token, expected '(' [test-switch-1.js:18:1]
|
D | test-do-while-1-expected.txt | 1 SyntaxError: Unexpected token [test-do-while-1.js:17:10]
|
D | test-switch-2-expected.txt | 1 SyntaxError: Unexpected token, expected '(' [test-switch-2.js:17:8]
|
D | test-member-expression-2-expected.txt | 1 SyntaxError: Unexpected token [test-member-expression-2.js:17:4]
|
/arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
D | test-interface2-expected.txt | 1 SyntaxError: Unexpected token [test-interface2.ts:17:11]
|
D | test-class-definiton5-expected.txt | 1 SyntaxError: Unexpected modifier [test-class-definiton5.ts:18:14]
|
D | test-as-expression4-expected.txt | 1 SyntaxError: Unexpected token [test-as-expression4.ts:17:20]
|
D | test-keyword-declare3-expected.txt | 1 SyntaxError: Unexpected token [test-keyword-declare3.ts:17:9]
|
D | test-as-expression6-expected.txt | 1 SyntaxError: Unexpected token [test-as-expression6.ts:17:19]
|
D | test-class-definiton3-expected.txt | 1 SyntaxError: Unexpected modifier [test-class-definiton3.ts:18:12]
|
D | test-type-alias1-expected.txt | 1 SyntaxError: Unexpected token [test-type-alias1.ts:17:6]
|
D | test-ts-mapped-type1-expected.txt | 1 SyntaxError: Unexpected token [test-ts-mapped-type1.ts:17:17]
|
D | test-ts-type-predicate7-expected.txt | 1 SyntaxError: Unexpected token [test-ts-type-predicate7.ts:17:63]
|