Home
last modified time | relevance | path

Searched refs:Err (Results 1 – 25 of 876) sorted by relevance

12345678910>>...36

/third_party/rust/crates/nom/src/sequence/
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()
83 Err(Err::Error(error_position!(&b"mn"[..], ErrorKind::Tag))) in complete()
99 Err(Err::Incomplete(Needed::new(1))) in pair_test()
103 Err(Err::Incomplete(Needed::new(2))) in pair_test()
107 Err(Err::Error(error_position!(&b"xxx"[..], ErrorKind::Tag))) in pair_test()
111 Err(Err::Error(error_position!(&b"xxxdef"[..], ErrorKind::Tag))) in pair_test()
115 Err(Err::Error(error_position!(&b"xxx"[..], ErrorKind::Tag))) in pair_test()
131 Err(Err::Incomplete(Needed::new(1))) in separated_pair_test()
[all …]
/third_party/rust/crates/nom/src/multi/
Dmod.rs8 use crate::internal::{Err, IResult, Needed, Parser};
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()
115 Err(Err::Error(err)) => Err(Err::Error(E::append(i, ErrorKind::Many1, err))), in many1()
116 Err(e) => Err(e), in many1()
125 Err(Err::Error(_)) => return Ok((i, acc)), in many1()
126 Err(e) => return Err(e), in many1()
130 return Err(Err::Error(E::from_error_kind(i, ErrorKind::Many1))); in many1()
181 Err(Err::Error(_)) => { in many_till()
[all …]
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(Err::Error(error_position!(c, ErrorKind::Tag))) in separated_list1_test()
99 assert_eq!(multi(f), Err(Err::Incomplete(Needed::new(1)))); in separated_list1_test()
100 assert_eq!(multi_longsep(g), Err(Err::Incomplete(Needed::new(1)))); in separated_list1_test()
101 assert_eq!(multi(h), Err(Err::Incomplete(Needed::new(1)))); in separated_list1_test()
120 assert_eq!(multi(&b"abcdab"[..]), Err(Err::Incomplete(Needed::new(2)))); in many0_test()
[all …]
/third_party/rust/crates/nom/src/character/
Dstreaming.rs9 use crate::internal::{Err, IResult, Needed};
40 None => Err(Err::Incomplete(Needed::new(c.len() - i.input_len()))), in char()
41 Some((_, false)) => Err(Err::Error(Error::from_char(i, c))), in char()
72 None => Err(Err::Incomplete(Needed::Unknown)), in satisfy()
73 Some((_, false)) => Err(Err::Error(Error::from_error_kind(i, ErrorKind::Satisfy))), in satisfy()
97 None => Err(Err::Incomplete(Needed::new(1))), in one_of()
98 Some((_, false)) => Err(Err::Error(Error::from_error_kind(i, ErrorKind::OneOf))), in one_of()
122 None => Err(Err::Incomplete(Needed::new(1))), in none_of()
123 Some((_, false)) => Err(Err::Error(Error::from_error_kind(i, ErrorKind::NoneOf))), in none_of()
149 CompareResult::Incomplete => Err(Err::Incomplete(Needed::new(2))), in crlf()
[all …]
Dcomplete.rs9 use crate::internal::{Err, IResult};
42 _ => Err(Err::Error(Error::from_char(i, c))), in char()
73 _ => Err(Err::Error(Error::from_error_kind(i, ErrorKind::Satisfy))), in satisfy()
97 _ => Err(Err::Error(Error::from_error_kind(i, ErrorKind::OneOf))), in one_of()
121 _ => Err(Err::Error(Error::from_error_kind(i, ErrorKind::NoneOf))), in none_of()
152 Err(Err::Error(E::from_error_kind(input, e))) in crlf()
201 Err(Err::Error(E::from_error_kind(input, e))) in not_line_ending()
235 CompareResult::Incomplete => Err(Err::Error(E::from_error_kind(input, ErrorKind::CrLf))), in line_ending()
240 _ => Err(Err::Error(E::from_error_kind(input, ErrorKind::CrLf))), in line_ending()
316 None => Err(Err::Error(E::from_error_kind(input, ErrorKind::Eof))), in anychar()
[all …]
/third_party/rust/crates/nom/src/bytes/
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(Err::Error(error_node_position!( in escaping()
119 Err(Err::Error(error_position!("AB\\", ErrorKind::Escaped)))
123 Err(Err::Error(error_node_position!(
180 Err(Err::Error(error_position!( in escape_transform()
187 Err(Err::Error(error_node_position!( in escape_transform()
[all …]
Dstreaming.rs5 use crate::internal::{Err, IResult, Needed, Parser};
44 CompareResult::Incomplete => Err(Err::Incomplete(Needed::new(tag_len - i.input_len()))), in tag()
47 Err(Err::Error(Error::from_error_kind(i, e))) in tag()
86 CompareResult::Incomplete => Err(Err::Incomplete(Needed::new(tag_len - i.input_len()))), in tag_no_case()
89 Err(Err::Error(Error::from_error_kind(i, e))) in tag_no_case()
279 Err(Err::Error(Error::from_error_kind( in take_while_m_n()
289 Err(Err::Error(Error::from_error_kind( in take_while_m_n()
298 Err(Err::Error(Error::from_error_kind(input, e))) in take_while_m_n()
306 Err(_needed) => Err(Err::Error(Error::from_error_kind( in take_while_m_n()
313 Err(Err::Incomplete(Needed::new(needed))) in take_while_m_n()
[all …]
/third_party/rust/crates/nom/src/
Dinternal.rs18 pub type IResult<I, O, E = error::Error<I>> = Result<(I, O), Err<E>>;
39 Err(Err::Error(e)) | Err(Err::Failure(e)) => Err(e), in finish()
40 Err(Err::Incomplete(_)) => { in finish()
97 pub enum Err<E> { enum
108 impl<E> Err<E> { implementation
111 if let Err::Incomplete(_) = self { in is_incomplete()
119 pub fn map<E2, F>(self, f: F) -> Err<E2> in map()
124 Err::Incomplete(n) => Err::Incomplete(n), in map()
125 Err::Failure(t) => Err::Failure(f(t)), in map()
126 Err::Error(t) => Err::Error(f(t)), in map()
[all …]
/third_party/rust/crates/nom/src/bits/
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(Err::Failure(e)) => Err(Err::Failure(e.convert())), in bits()
102 Err(Err::Incomplete(Needed::Unknown)) => Err(Err::Incomplete(Needed::Unknown)), in bytes()
103 Err(Err::Incomplete(Needed::Size(sz))) => Err(match sz.get().checked_mul(8) { in bytes()
104 Some(v) => Err::Incomplete(Needed::new(v)), in bytes()
105 None => Err::Failure(E2::from_error_kind(i, ErrorKind::TooLarge)), in bytes()
107 Err(Err::Error(e)) => Err(Err::Error(e.convert())), in bytes()
108 Err(Err::Failure(e)) => Err(Err::Failure(e.convert())), in bytes()
/third_party/rust/crates/serde/test_suite/tests/expand/
Dser_enum.expanded.rs49 _serde::__private::Err(__err) => { in serialize()
50 return _serde::__private::Err(__err); in serialize()
58 _serde::__private::Err(__err) => { in serialize()
59 return _serde::__private::Err(__err); in serialize()
67 _serde::__private::Err(__err) => { in serialize()
68 return _serde::__private::Err(__err); in serialize()
76 _serde::__private::Err(__err) => { in serialize()
77 return _serde::__private::Err(__err); in serialize()
85 _serde::__private::Err(__err) => { in serialize()
86 return _serde::__private::Err(__err); in serialize()
[all …]
Dde_enum.expanded.rs42 _serde::__private::Err(__err) => { in serialize()
43 return _serde::__private::Err(__err); in serialize()
51 _serde::__private::Err(__err) => { in serialize()
52 return _serde::__private::Err(__err); in serialize()
60 _serde::__private::Err(__err) => { in serialize()
61 return _serde::__private::Err(__err); in serialize()
69 _serde::__private::Err(__err) => { in serialize()
70 return _serde::__private::Err(__err); in serialize()
78 _serde::__private::Err(__err) => { in serialize()
79 return _serde::__private::Err(__err); in serialize()
[all …]
Dnamed_map.expanded.rs32 _serde::__private::Err(__err) => { in serialize()
33 return _serde::__private::Err(__err); in serialize()
38 _serde::__private::Err(__err) => { in serialize()
39 return _serde::__private::Err(__err); in serialize()
44 _serde::__private::Err(__err) => { in serialize()
45 return _serde::__private::Err(__err); in serialize()
50 _serde::__private::Err(__err) => { in serialize()
51 return _serde::__private::Err(__err); in serialize()
179 _serde::__private::Err(__err) => { in deserialize()
180 return _serde::__private::Err(__err); in deserialize()
[all …]
/third_party/gn/src/gn/
Dfunctions.h13 class Err; variable
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* err);
[all …]
Dbuilder.h19 class Err; variable
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* err);
[all …]
Derr.h27 class Err {
41 std::vector<Err> sub_errs;
48 Err() = default;
51 Err(const Location& location,
56 Err(const LocationRange& range,
61 Err(const Token& token,
66 Err(const ParseNode* node,
71 Err(const Value& value,
75 Err(const Err& other);
76 Err(Err&& other) = default;
[all …]
Dohos_components_checker.h35 bool CheckAllDepsConfigs(const Target *target, const std::string label, Err *err) const;
37 Err *err) const;
39 Err *err) const;
40 …iNotLib(const Item *item, const OhosComponent *component, const std::string label, Err *err) const;
42 Err *err) const;
44 Err *err) const;
46 const std::string deps, Err *err) const;
48 const std::string deps, bool is_external_deps, Err *err) const;
50 const std::string label, const std::string deps, Err *err) const;
62 bool InterceptAllDepsConfig(const Target *target, const std::string label, Err *err) const;
[all …]
/third_party/rust/crates/rust-cexpr/src/
Dlib.rs22 pub use nom::{error::ErrorKind, error::Error, Err, IResult, Needed};
122 Err(nom::Err::Incomplete(n)) => Err(nom::Err::Incomplete(n)), in to_cexpr_result()
123 Err(nom::Err::Error(e)) => Err(nom::Err::Error(e.into())), in to_cexpr_result()
124 Err(nom::Err::Failure(e)) => Err(nom::Err::Failure(e.into())), in to_cexpr_result()
142 Err(nom::Err::Error((rem, ErrorKind::Partial).into())) in assert_full_parse()
145 Err(nom::Err::Incomplete(n)) => Err(nom::Err::Incomplete(n)), in assert_full_parse()
146 Err(nom::Err::Failure(e)) => Err(nom::Err::Failure(e)), in assert_full_parse()
147 Err(nom::Err::Error(e)) => Err(nom::Err::Error(e)), in assert_full_parse()
/third_party/rust/crates/nom/src/combinator/
Dmod.rs117 Err(e) => Err(Err::Error(E::from_external_error(i, ErrorKind::MapRes, e))), in map_res()
155 None => Err(Err::Error(E::from_error_kind(i, ErrorKind::MapOpt))), in map_opt()
247 Err(Err::Error(_)) => Ok((i, None)), in opt()
248 Err(e) => Err(e), in opt()
282 Err(e) => Err(e), in cond()
312 Err(e) => Err(e), in peek()
338 Err(Err::Error(E::from_error_kind(input, ErrorKind::Eof))) in eof()
363 Err(Err::Incomplete(_)) => Err(Err::Error(E::from_error_kind(i, ErrorKind::Complete))), in complete()
394 Err(Err::Error(E::from_error_kind(input, ErrorKind::Eof))) in all_consuming()
434 Err(Err::Error(E::from_error_kind(i, ErrorKind::Verify))) in verify()
[all …]
Dtests.rs6 use crate::internal::{Err, IResult, Needed};
35 Err(Err::Error(error_position!(not_over, ErrorKind::Eof))) in eof_on_slices()
50 Err(Err::Error(error_position!(not_over, ErrorKind::Eof))) in eof_on_strs()
130 Err(Err::Error((&[50][..], ErrorKind::MapOpt))) in test_map_opt()
152 Err(Err::Error((&[102][..], ErrorKind::Eof))) in test_all_consuming()
170 Err(Err::Error((&b"defg"[..], ErrorKind::Verify))) in test_verify_ref()
189 Err(Err::Error((&b"defg"[..], ErrorKind::Verify))) in test_verify_alloc()
199 Err, in test_into()
219 assert_eq!(opt_abcd(c), Err(Err::Incomplete(Needed::new(2)))); in opt_test()
229 assert_eq!(peek_tag(&b"ab"[..]), Err(Err::Incomplete(Needed::new(2)))); in peek_test()
[all …]
/third_party/rust/crates/nom/src/number/
Dstreaming.rs36 Err(Err::Incomplete(Needed::new(1))) in be_u8()
66 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in be_u16()
99 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in be_u24()
132 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in be_u32()
165 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in be_u64()
197 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in be_u128()
357 Err(Err::Incomplete(Needed::new(1))) in le_u8()
387 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in le_u16()
420 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in le_u24()
453 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in le_u32()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/JITLink/
DEHFrameSupport.cpp58 if (auto Err = processBlock(G, B, BCache)) in operator ()() local
59 return Err; in operator ()()
93 if (auto Err = BlockReader.readInteger(Length)) in processBlock() local
94 return Err; in processBlock()
96 if (auto Err = BlockReader.skip(Length)) in processBlock() local
97 return Err; in processBlock()
100 if (auto Err = BlockReader.readInteger(ExtendedLength)) in processBlock() local
101 return Err; in processBlock()
102 if (auto Err = BlockReader.skip(ExtendedLength)) in processBlock() local
103 return Err; in processBlock()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DDataExtractor.cpp28 bool isLittleEndian, const char *Data, llvm::Error *Err) { in getU() argument
29 ErrorAsOutParameter ErrAsOut(Err); in getU()
31 if (isError(Err)) in getU()
36 unexpectedEndReached(Err); in getU()
51 llvm::Error *Err) { in getUs() argument
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) const { in getU8()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/Orc/RPC/
DRPCSerialization.h295 if (auto Err = in serialize() local
298 return Err; in serialize()
299 if (auto Err = SequenceTraits<ChannelT>::emitSeparator(C)) in serialize() local
300 return Err; in serialize()
308 if (auto Err = in deserialize() local
310 return Err; in deserialize()
311 if (auto Err = SequenceTraits<ChannelT>::consumeSeparator(C)) in deserialize() local
312 return Err; in deserialize()
336 std::function<Error(ChannelT &C, Error &Err)>;
367 if (auto Err = serializeSeq(C, *KeyName)) in registerErrorType() local
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/AsmParser/
DParser.cpp26 ModuleSummaryIndex *Index, SMDiagnostic &Err, in parseAssemblyInto() argument
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() argument
78 if (parseAssemblyInto(F, M.get(), Index.get(), Err, Slots, UpgradeDebugInfo, in parseAssemblyWithIndex()
86 StringRef Filename, SMDiagnostic &Err, LLVMContext &Context, in parseAssemblyFileWithIndex() argument
[all …]
/third_party/rust/crates/nom/tests/
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(Err::Incomplete(Needed::new(18446744073709551599))) in overflow_incomplete_many_till()
99 Err(Err::Incomplete(Needed::new(18446744073709551599))) in overflow_incomplete_many_m_n()
114 Err(Err::Incomplete(Needed::new(18446744073709551599))) in overflow_incomplete_count()
130 Err(Err::Incomplete(Needed::new(18446744073709551598))) in overflow_incomplete_length_count()
143 Err(Err::Incomplete(Needed::new(18446744073709551615))) in overflow_incomplete_length_data()

12345678910>>...36