Home
last modified time | relevance | path

Searched refs:Err (Results 1 - 25 of 836) sorted by relevance

12345678910>>...34

/third_party/rust/crates/nom/src/sequence/
H A Dtests.rs4 use crate::internal::{Err, IResult, Needed};
10 use crate::{error::ErrorKind, Err}; in single_element_tuples()
16 Err(Err::Error(("123def", ErrorKind::Alpha))) in single_element_tuples()
58 //fn error_to_string(e:Err) -> String in error_to_string()
83 Err(Err::Error(error_position!(&b"mn"[..], ErrorKind::Tag))) in error_to_string()
99 Err(Err::Incomplete(Needed::new(1))) in pair_test()
103 Err(Er in pair_test()
[all...]
/third_party/rust/crates/nom/src/multi/
H A Dmod.rs8 use crate::internal::{Err, IResult, Needed, Parser};
28 /// This stops on [`Err::Error`] and returns the results that were accumulated. To instead chain an error up, see
38 /// # use nom::{Err, error::ErrorKind, Needed, IResult};
64 Err(Err::Error(_)) => return Ok((i, acc)), in many0()
65 Err(e) => return Err(e), in many0()
69 return Err(Err::Error(E::from_error_kind(i, ErrorKind::Many0))); in many0()
82 /// This stops on [`Err
[all...]
H A Dtests.rs6 internal::{Err, IResult, Needed},
56 Err(Err::Error(error_position!( in separated_list0_test()
64 assert_eq!(multi(f), Err(Err::Incomplete(Needed::new(1)))); in separated_list0_test()
65 assert_eq!(multi_longsep(g), Err(Err::Incomplete(Needed::new(1)))); in separated_list0_test()
66 assert_eq!(multi(h), Err(Err::Incomplete(Needed::new(1)))); in separated_list0_test()
94 Err(Er in separated_list1_test()
[all...]
/third_party/rust/crates/nom/src/character/
H A Dstreaming.rs9 use crate::internal::{Err, IResult, Needed};
18 /// *Streaming version*: Will return `Err(nom::Err::Incomplete(_))` if there's not enough input data.
22 /// # use nom::{Err, error::{ErrorKind, Error}, Needed, IResult};
28 /// assert_eq!(parser("bc"), Err(Err::Error(Error::new("bc", ErrorKind::Char))));
29 /// assert_eq!(parser(""), Err(Err::Incomplete(Needed::new(1))));
40 None => Err(Err in char()
[all...]
H A Dcomplete.rs9 use crate::internal::{Err, IResult};
22 /// # use nom::{Err, error::{ErrorKind, Error}, IResult};
28 /// assert_eq!(parser(" abc"), Err(Err::Error(Error::new(" abc", ErrorKind::Char))));
29 /// assert_eq!(parser("bc"), Err(Err::Error(Error::new("bc", ErrorKind::Char))));
30 /// assert_eq!(parser(""), Err(Err::Error(Error::new("", ErrorKind::Char))));
42 _ => Err(Err in char()
[all...]
/third_party/rust/crates/nom/src/bytes/
H A Dtests.rs7 use crate::internal::{Err, IResult, Needed};
34 Err(Err::Error(error_position!(c, ErrorKind::IsA))) in is_a()
58 Err(Err::Error(error_position!(c, ErrorKind::IsNot))) in is_not()
65 assert_eq!(a_or_b(e), Err(Err::Incomplete(Needed::new(1)))); in is_not()
84 Err(Err::Error(error_position!( in escaping()
91 Err(Er in escaping()
[all...]
H A Dstreaming.rs5 use crate::internal::{Err, IResult, Needed, Parser};
19 /// # use nom::{Err, error::{Error, ErrorKind}, Needed, IResult};
27 /// assert_eq!(parser("Something"), Err(Err::Error(Error::new("Something", ErrorKind::Tag))));
28 /// assert_eq!(parser("S"), Err(Err::Error(Error::new("S", ErrorKind::Tag))));
29 /// assert_eq!(parser("H"), Err(Err::Incomplete(Needed::new(4))));
44 CompareResult::Incomplete => Err(Err in tag()
[all...]
H A Dcomplete.rs5 use crate::internal::{Err, IResult, Parser};
18 /// It will return `Err(Err::Error((_, ErrorKind::Tag)))` if the input doesn't match the pattern
21 /// # use nom::{Err, error::{Error, ErrorKind}, Needed, IResult};
29 /// assert_eq!(parser("Something"), Err(Err::Error(Error::new("Something", ErrorKind::Tag))));
30 /// assert_eq!(parser(""), Err(Err::Error(Error::new("", ErrorKind::Tag))));
46 Err(Err in tag()
[all...]
/third_party/rust/crates/nom/src/
H A Dinternal.rs14 /// was not parsed) and the produced value. The `Err` side contains an instance of `nom::Err`.
18 pub type IResult<I, O, E = error::Error<I>> = Result<(I, O), Err<E>>;
23 /// management libraries. It keeps the same `Ok` branch, and merges `Err::Error`
24 /// and `Err::Failure` into the `Err` side.
26 /// *warning*: if the result is `Err(Err::Incomplete(_))`, this method will panic.
30 /// Once the parser returns either `Ok(_)`, `Err(Err
97 pub enum Err<E> { global() enum
108 impl<E> Err<E> { global() impls
139 impl<T> Err<(T, ErrorKind)> { global() impls
153 impl<T> Err<error::Error<T>> { global() impls
176 impl Err<(&[u8], ErrorKind)> { global() impls
185 impl Err<(&str, ErrorKind)> { global() impls
194 impl Err<error::Error<&[u8]>> { global() impls
203 impl Err<error::Error<&str>> { global() impls
[all...]
/third_party/gn/src/gn/
H A Dfunctions.h13 class Err;
32 Err* err);
39 Err* err);
47 Err* err);
53 Err* err);
62 Err* err);
71 Err* err);
79 Err* err);
88 Err* err);
97 Err* er
[all...]
H A Dbuilder.h19 class Err;
61 bool CheckForBadItems(Err* err) const;
67 bool TargetDefined(BuilderRecord* record, Err* err);
68 bool ConfigDefined(BuilderRecord* record, Err* err);
69 bool ToolchainDefined(BuilderRecord* record, Err* err);
80 Err* err);
90 Err* err);
94 Err* err);
97 Err* err);
100 Err* er
[all...]
H A Derr.h27 class Err { class
43 std::vector<Err> sub_errs;
50 Err() = default;
53 Err(const Location& location,
58 Err(const LocationRange& range,
63 Err(const Token& token,
68 Err(const ParseNode* node,
73 Err(const Value& value,
77 Err(const Err
[all...]
H A Dohos_components_checker.h49 bool CheckAllDepsConfigs(const Target *target, const std::string &label, Err *err) const;
51 Err *err) const;
53 Err *err) const;
55 const std::string &deps, Err *err) const;
57 Err *err) const;
59 Err *err) const;
61 const std::string &deps, Err *err) const;
63 const std::string &deps, bool is_external_deps, Err *err) const;
65 const std::string &label, const std::string &deps, Err *err) const;
78 bool InterceptAllDepsConfig(const Target *target, const std::string &label, Err *er
[all...]
H A Derr.cc61 const Err::RangeList& ranges, in OutputHighlighedPosition()
89 Err::Err(const Err& other) { in Err() function in Err
94 Err::Err(const Location& location, in Err() function in Err
99 Err::Err(const LocationRange& range, in Err() function in Err
106 Err::Err(cons function in Err
111 Err::Err(const ParseNode* node, Err() function in Err
123 Err::Err(const Value& value, Err() function in Err
[all...]
/third_party/rust/crates/nom/src/bits/
H A Dmod.rs8 use crate::internal::{Err, IResult, Needed, Parser};
55 Err(Err::Incomplete(n)) => Err(Err::Incomplete(n.map(|u| u.get() / 8 + 1))), in bits()
56 Err(Err::Error(e)) => Err(Err::Error(e.convert())), in bits()
57 Err(Er in bits()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/JITLink/
H A DEHFrameSupport.cpp58 if (auto Err = processBlock(G, B, BCache)) in operator ()()
59 return Err; in operator ()()
93 if (auto Err = BlockReader.readInteger(Length)) in processBlock()
94 return Err; in processBlock()
96 if (auto Err = BlockReader.skip(Length)) in processBlock()
97 return Err; in processBlock()
100 if (auto Err = BlockReader.readInteger(ExtendedLength)) in processBlock()
101 return Err; in processBlock()
102 if (auto Err = BlockReader.skip(ExtendedLength)) in processBlock()
103 return Err; in processBlock()
[all...]
/third_party/rust/crates/nom/src/combinator/
H A Dmod.rs59 /// use nom::{Err,error::ErrorKind, IResult,Parser};
70 /// assert_eq!(parser.parse("abc"), Err(Err::Error(("abc", ErrorKind::Digit))));
87 /// # use nom::{Err,error::ErrorKind, IResult};
98 /// assert_eq!(parse("abc"), Err(Err::Error(("abc", ErrorKind::Digit))));
101 /// assert_eq!(parse("123456"), Err(Err::Error(("123456", ErrorKind::MapRes))));
117 Err(e) => Err(Er in map_res()
[all...]
H A Dtests.rs6 use crate::internal::{Err, IResult, Needed};
35 Err(Err::Error(error_position!(not_over, ErrorKind::Eof))) in t1()
50 Err(Err::Error(error_position!(not_over, ErrorKind::Eof))) in eof_on_strs()
65 assert_eq!(res_not_over, Err(Err::Error(error_position!(not_over, ErrorKind::Eof)))); in end_of_input()
130 Err(Err::Error((&[50][..], ErrorKind::MapOpt))) in test_map_opt()
152 Err(Er in test_all_consuming()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A DDataExtractor.cpp28 bool isLittleEndian, const char *Data, llvm::Error *Err) { in getU()
29 ErrorAsOutParameter ErrAsOut(Err); in getU()
31 if (isError(Err)) in getU()
36 unexpectedEndReached(Err); in getU()
51 llvm::Error *Err) { in getUs()
52 ErrorAsOutParameter ErrAsOut(Err); in getUs()
53 if (isError(Err)) in getUs()
59 unexpectedEndReached(Err); in getUs()
64 *value_ptr = getU<T>(offset_ptr, de, isLittleEndian, Data, Err); in getUs()
72 uint8_t DataExtractor::getU8(uint64_t *offset_ptr, llvm::Error *Err) cons
27 getU(uint64_t *offset_ptr, const DataExtractor *de, bool isLittleEndian, const char *Data, llvm::Error *Err) getU() argument
49 getUs(uint64_t *offset_ptr, T *dst, uint32_t count, const DataExtractor *de, bool isLittleEndian, const char *Data, llvm::Error *Err) getUs() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/Orc/RPC/
H A DRPCSerialization.h295 if (auto Err = in serialize()
298 return Err; in serialize()
299 if (auto Err = SequenceTraits<ChannelT>::emitSeparator(C)) in serialize()
300 return Err; in serialize()
308 if (auto Err = in deserialize()
310 return Err; in deserialize()
311 if (auto Err = SequenceTraits<ChannelT>::consumeSeparator(C)) in deserialize()
312 return Err; in deserialize()
336 std::function<Error(ChannelT &C, Error &Err)>;
367 if (auto Err in registerErrorType()
374 serialize(ChannelT &C, Error &&Err) serialize() argument
389 deserialize(ChannelT &C, Error &Err) deserialize() argument
524 serialize(ChannelT &C, Error &&Err) serialize() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/Coverage/
H A DCoverageMappingReader.cpp70 if (auto Err = readULEB128(Result)) in readIntMax()
71 return Err; in readIntMax()
78 if (auto Err = readULEB128(Result)) in readSize()
79 return Err; in readSize()
88 if (auto Err = readSize(Length)) in readString()
89 return Err; in readString()
97 if (auto Err = readSize(NumFilenames)) in read()
98 return Err; in read()
101 if (auto Err = readString(Filename)) in read()
102 return Err; in read()
775 Error Err = Error::success(); create() local
[all...]
/third_party/rust/crates/nom/tests/
H A Doverflow.rs10 use nom::{Err, IResult, Needed};
23 Err(Err::Incomplete(Needed::new(18446744073709551615))) in overflow_incomplete_tuple()
37 Err(Err::Incomplete(Needed::new(18446744073709551615))) in overflow_incomplete_length_bytes()
51 Err(Err::Incomplete(Needed::new(18446744073709551599))) in overflow_incomplete_many0()
67 Err(Err::Incomplete(Needed::new(18446744073709551599))) in overflow_incomplete_many1()
83 Err(Er in overflow_incomplete_many_till()
[all...]
/third_party/rust/crates/rustix/tests/mm/
H A Dmlock.rs16 Err(rustix::io::Errno::PERM) | Err(rustix::io::Errno::NOMEM) => {} in test_mlock()
18 Err(other) => Err(other).unwrap(), in test_mlock()
36 Err(rustix::io::Errno::PERM) in test_mlock_with()
37 | Err(rustix::io::Errno::NOMEM) in test_mlock_with()
38 | Err(rustix::io::Errno::NOSYS) => {} in test_mlock_with()
40 Err(other) => Err(other).unwrap(), in test_mlock_with()
72 Err(rusti in test_mlock_with_onfault()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/AsmParser/
H A DParser.cpp26 ModuleSummaryIndex *Index, SMDiagnostic &Err, in parseAssemblyInto()
34 return LLParser(F.getBuffer(), SM, Err, M, Index, in parseAssemblyInto()
41 llvm::parseAssembly(MemoryBufferRef F, SMDiagnostic &Err, LLVMContext &Context, in parseAssembly() argument
47 if (parseAssemblyInto(F, M.get(), nullptr, Err, Slots, UpgradeDebugInfo, in parseAssembly()
55 llvm::parseAssemblyFile(StringRef Filename, SMDiagnostic &Err, in parseAssemblyFile() argument
61 Err = SMDiagnostic(Filename, SourceMgr::DK_Error, in parseAssemblyFile()
66 return parseAssembly(FileOrErr.get()->getMemBufferRef(), Err, Context, Slots, in parseAssemblyFile()
71 MemoryBufferRef F, SMDiagnostic &Err, LLVMContext &Context, in parseAssemblyWithIndex()
78 if (parseAssemblyInto(F, M.get(), Index.get(), Err, Slots, UpgradeDebugInfo, in parseAssemblyWithIndex()
86 StringRef Filename, SMDiagnostic &Err, LLVMContex in parseAssemblyFileWithIndex()
25 parseAssemblyInto(MemoryBufferRef F, Module *M, ModuleSummaryIndex *Index, SMDiagnostic &Err, SlotMapping *Slots, bool UpgradeDebugInfo, StringRef DataLayoutString) parseAssemblyInto() argument
70 parseAssemblyWithIndex( MemoryBufferRef F, SMDiagnostic &Err, LLVMContext &Context, SlotMapping *Slots, bool UpgradeDebugInfo, StringRef DataLayoutString) parseAssemblyWithIndex() argument
85 parseAssemblyFileWithIndex( StringRef Filename, SMDiagnostic &Err, LLVMContext &Context, SlotMapping *Slots, bool UpgradeDebugInfo, StringRef DataLayoutString) parseAssemblyFileWithIndex() argument
102 parseAssemblyString(StringRef AsmString, SMDiagnostic &Err, LLVMContext &Context, SlotMapping *Slots, bool UpgradeDebugInfo, StringRef DataLayoutString) parseAssemblyString() argument
110 parseSummaryIndexAssemblyInto(MemoryBufferRef F, ModuleSummaryIndex &Index, SMDiagnostic &Err) parseSummaryIndexAssemblyInto() argument
124 parseSummaryIndexAssembly(MemoryBufferRef F, SMDiagnostic &Err) parseSummaryIndexAssembly() argument
135 parseSummaryIndexAssemblyFile(StringRef Filename, SMDiagnostic &Err) parseSummaryIndexAssemblyFile() argument
147 parseConstantValue(StringRef Asm, SMDiagnostic &Err, const Module &M, const SlotMapping *Slots) parseConstantValue() argument
159 parseType(StringRef Asm, SMDiagnostic &Err, const Module &M, const SlotMapping *Slots) parseType() argument
175 parseTypeAtBeginning(StringRef Asm, unsigned &Read, SMDiagnostic &Err, const Module &M, const SlotMapping *Slots) parseTypeAtBeginning() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
H A DArchive.cpp55 uint64_t Size, Error *Err) in ArchiveMemberHeader()
60 ErrorAsOutParameter ErrAsOutParam(Err); in ArchiveMemberHeader()
63 if (Err) { in ArchiveMemberHeader()
70 *Err = malformedError(Msg + "at offset " + Twine(Offset)); in ArchiveMemberHeader()
72 *Err = malformedError(Msg + "for " + NameOrErr.get()); in ArchiveMemberHeader()
77 if (Err) { in ArchiveMemberHeader()
90 *Err = malformedError(Msg + "at offset " + Twine(Offset)); in ArchiveMemberHeader()
92 *Err = malformedError(Msg + "for " + NameOrErr.get()); in ArchiveMemberHeader()
327 Archive::Child::Child(const Archive *Parent, const char *Start, Error *Err) in Child() argument
332 : 0, Err) { in Child()
53 ArchiveMemberHeader(const Archive *Parent, const char *RawHeaderPtr, uint64_t Size, Error *Err) ArchiveMemberHeader() argument
481 Error Err = Error::success(); getNext() local
531 Error Err = Error::success(); create() local
543 Archive(MemoryBufferRef Source, Error &Err) Archive() argument
775 child_begin(Error &Err, bool SkipInternal) const child_begin() argument
852 Error Err = Error::success(); getMember() local
[all...]

Completed in 11 milliseconds

12345678910>>...34