Home
last modified time | relevance | path

Searched refs:ParseError (Results 1 – 25 of 117) sorted by relevance

12345

/third_party/protobuf/python/google/protobuf/
Djson_format.py96 class ParseError(Error): class
392 raise ParseError('Failed to load JSON: duplicate key {0}.'.format(name))
431 raise ParseError('Failed to load JSON: {0}.'.format(str(e)))
506 raise ParseError('Message type {0} does not have extensions'.format(
522 raise ParseError(
528 raise ParseError('Message type "{0}" should not have multiple '
536 raise ParseError('Message type "{0}" should not have multiple '
558 raise ParseError('repeated field {0} must be in [] which is '
567 raise ParseError('null is not allowed to be used as an element'
574 raise ParseError('null is not allowed to be used as an element'
[all …]
Dtext_format.py79 class ParseError(Error): class
89 super(ParseError, self).__init__(message)
91 super(ParseError, self).__init__()
875 raise ParseError('Type %s not found in descriptor pool' %
1220 raise ParseError('Invalid field value: ' + tokenizer.token)
1320 raise self.ParseError('Expected "%s".' % token)
1325 raise self.ParseError('Expected comment.')
1349 except ParseError:
1363 raise self.ParseError('Expected identifier.')
1371 except ParseError:
[all …]
/third_party/rust/crates/nom/src/number/
Dcomplete.rs7 use crate::error::ParseError;
32 pub fn be_u8<I, E: ParseError<I>>(input: I) -> IResult<I, u8, E> in be_u8()
62 pub fn be_u16<I, E: ParseError<I>>(input: I) -> IResult<I, u16, E> in be_u16()
95 pub fn be_u24<I, E: ParseError<I>>(input: I) -> IResult<I, u32, E> in be_u24()
128 pub fn be_u32<I, E: ParseError<I>>(input: I) -> IResult<I, u32, E> in be_u32()
161 pub fn be_u64<I, E: ParseError<I>>(input: I) -> IResult<I, u64, E> in be_u64()
194 pub fn be_u128<I, E: ParseError<I>>(input: I) -> IResult<I, u128, E> in be_u128()
227 pub fn be_i8<I, E: ParseError<I>>(input: I) -> IResult<I, i8, E> in be_i8()
250 pub fn be_i16<I, E: ParseError<I>>(input: I) -> IResult<I, i16, E> in be_i16()
273 pub fn be_i24<I, E: ParseError<I>>(input: I) -> IResult<I, i32, E> in be_i24()
[all …]
Dstreaming.rs7 use crate::error::{ErrorKind, ParseError};
30 pub fn be_u8<I, E: ParseError<I>>(input: I) -> IResult<I, u8, E> in be_u8()
60 pub fn be_u16<I, E: ParseError<I>>(input: I) -> IResult<I, u16, E> in be_u16()
93 pub fn be_u24<I, E: ParseError<I>>(input: I) -> IResult<I, u32, E> in be_u24()
126 pub fn be_u32<I, E: ParseError<I>>(input: I) -> IResult<I, u32, E> in be_u32()
159 pub fn be_u64<I, E: ParseError<I>>(input: I) -> IResult<I, u64, E> in be_u64()
191 pub fn be_u128<I, E: ParseError<I>>(input: I) -> IResult<I, u128, E> in be_u128()
221 pub fn be_i8<I, E: ParseError<I>>(input: I) -> IResult<I, i8, E> in be_i8()
241 pub fn be_i16<I, E: ParseError<I>>(input: I) -> IResult<I, i16, E> in be_i16()
261 pub fn be_i24<I, E: ParseError<I>>(input: I) -> IResult<I, i32, E> in be_i24()
[all …]
/third_party/rust/crates/nom/src/combinator/
Dmod.rs8 use crate::error::{ErrorKind, FromExternalError, ParseError};
31 pub fn rest<T, E: ParseError<T>>(input: T) -> IResult<T, T, E> in rest()
48 pub fn rest_len<T, E: ParseError<T>>(input: T) -> IResult<T, usize, E> in rest_len()
142 pub fn map_opt<I: Clone, O1, O2, E: ParseError<I>, F, G>( in map_opt()
176 pub fn map_parser<I, O1, O2, E: ParseError<I>, F, G>( in map_parser()
206 pub fn flat_map<I, O1, O2, E: ParseError<I>, F, G, H>( in flat_map()
239 pub fn opt<I: Clone, O, E: ParseError<I>, F>(mut f: F) -> impl FnMut(I) -> IResult<I, Option<O>, E> in opt()
271 pub fn cond<I, O, E: ParseError<I>, F>( in cond()
304 pub fn peek<I: Clone, O, E: ParseError<I>, F>(mut f: F) -> impl FnMut(I) -> IResult<I, O, E> in peek()
333 pub fn eof<I: InputLength + Clone, E: ParseError<I>>(input: I) -> IResult<I, I, E> { in eof()
[all …]
/third_party/rust/crates/tracing/tracing-subscriber/src/filter/
Ddirective.rs11 pub struct ParseError { struct
45 Level(level::ParseError),
315 type Err = ParseError;
328 .ok_or_else(|| ParseError::msg("string must not be empty"))?; in from_str()
336 return Err(ParseError::msg( in from_str()
349 return Err(ParseError::msg( in from_str()
355 return Err(ParseError::msg("expected fields list to end with '}]'")); in from_str()
399 impl ParseError { implementation
402 ParseError { in new()
408 ParseError { in msg()
[all …]
/third_party/rust/crates/nom/examples/
Djson.rs8 error::{context, convert_error, ContextError, ErrorKind, ParseError, VerboseError},
30 fn sp<'a, E: ParseError<&'a str>>(i: &'a str) -> IResult<&'a str, &'a str, E> { in sp()
53 fn parse_str<'a, E: ParseError<&'a str>>(i: &'a str) -> IResult<&'a str, &'a str, E> { in parse_str()
65 fn boolean<'a, E: ParseError<&'a str>>(input: &'a str) -> IResult<&'a str, bool, E> {
79 fn null<'a, E: ParseError<&'a str>>(input: &'a str) -> IResult<&'a str, (), E> {
94 fn string<'a, E: ParseError<&'a str> + ContextError<&'a str>>( in string()
107 fn array<'a, E: ParseError<&'a str> + ContextError<&'a str>>( in array()
122 fn key_value<'a, E: ParseError<&'a str> + ContextError<&'a str>>( in key_value()
132 fn hash<'a, E: ParseError<&'a str> + ContextError<&'a str>>( in hash()
156 fn json_value<'a, E: ParseError<&'a str> + ContextError<&'a str>>( in json_value()
[all …]
Dstring.rs18 use nom::error::{FromExternalError, ParseError};
32 E: ParseError<&'a str> + FromExternalError<&'a str, std::num::ParseIntError>, in parse_unicode()
63 E: ParseError<&'a str> + FromExternalError<&'a str, std::num::ParseIntError>, in parse_escaped_char()
89 fn parse_escaped_whitespace<'a, E: ParseError<&'a str>>( in parse_escaped_whitespace()
96 fn parse_literal<'a, E: ParseError<&'a str>>(input: &'a str) -> IResult<&'a str, &'a str, E> { in parse_literal()
122 E: ParseError<&'a str> + FromExternalError<&'a str, std::num::ParseIntError>,
137 E: ParseError<&'a str> + FromExternalError<&'a str, std::num::ParseIntError>,
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/unittest/
DIceParseInstsTest.cpp29 constexpr bool ParseError = true; variable
62 EXPECT_FALSE(Munger.runTest(ParseError)); in TEST()
68 EXPECT_DEATH(Munger.runTest(ParseError), ".*ERROR: Unable to continue.*"); in TEST()
176 EXPECT_FALSE(Munger.runTest(ARRAY(Align30), ParseError)); in TEST()
287 EXPECT_FALSE(Munger.runTest(ARRAY(Align0), ParseError)); in TEST()
306 EXPECT_FALSE(Munger.runTest(ARRAY(Align4), ParseError)); in TEST()
325 EXPECT_FALSE(Munger.runTest(ARRAY(Align29), ParseError)); in TEST()
344 EXPECT_FALSE(Munger.runTest(ARRAY(Align30), ParseError)); in TEST()
440 EXPECT_FALSE(Munger.runTest(ARRAY(Align0), ParseError)); in TEST()
474 EXPECT_FALSE(Munger.runTest(ARRAY(Align29), ParseError)); in TEST()
[all …]
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
Dtext_format_test.py350 self.assertRaises(text_format.ParseError, text_format.Merge, text, message)
356 text_format.ParseError,
365 text_format.ParseError,
374 text_format.ParseError,
378 text_format.ParseError,
387 text_format.ParseError, '1:16 : Expected ">".',
392 text_format.ParseError, '1:16 : Expected "}".',
412 text_format.ParseError,
421 text_format.ParseError,
431 text_format.ParseError,
[all …]
/third_party/rust/crates/bindgen/bindgen/ir/
Dfunction.rs11 use crate::parse::{ClangSubItemParser, ParseError, ParseResult};
406 ) -> Result<Self, ParseError> { in from_ty() argument
413 return Err(ParseError::Continue); in from_ty()
424 return Err(ParseError::Continue); in from_ty()
433 return Err(ParseError::Continue); in from_ty()
502 return Err(ParseError::Continue); in from_ty()
545 .ok_or(ParseError::Continue)? in from_ty()
547 ty.ret_type().ok_or(ParseError::Continue)? in from_ty()
658 ) -> Result<ParseResult<Self>, ParseError> { in parse() argument
662 None => return Err(ParseError::Continue), in parse()
[all …]
Dvar.rs13 use crate::parse::{ClangSubItemParser, ParseError, ParseResult};
177 ) -> Result<ParseResult<Self>, ParseError> { in parse() argument
186 return Err(ParseError::Continue); in parse()
194 return Err(ParseError::Continue); in parse()
202 None => return Err(ParseError::Continue), in parse()
217 return Err(ParseError::Continue); in parse()
226 EvalResult::Invalid => return Err(ParseError::Continue), in parse()
291 return Err(ParseError::Continue); in parse()
369 Err(ParseError::Continue) in parse()
Ditem.rs21 use crate::parse::{ClangSubItemParser, ParseError, ParseResult};
1289 result: &mut Result<TypeId, ParseError>, in visit_child() argument
1300 Err(ParseError::Recurse) => { in visit_child()
1304 Err(ParseError::Continue) => CXChildVisit_Continue, in visit_child()
1338 ) -> Result<ItemId, ParseError> { in parse() argument
1343 return Err(ParseError::Continue); in parse()
1375 Err(ParseError::Recurse) => return Err(ParseError::Recurse), in parse()
1376 Err(ParseError::Continue) => {} in parse()
1425 Err(ParseError::Recurse) => return Err(ParseError::Recurse), in parse()
1426 Err(ParseError::Continue) => {} in parse()
[all …]
/third_party/rust/crates/nom/src/sequence/
Dmod.rs6 use crate::error::ParseError;
29 pub fn pair<I, O1, O2, E: ParseError<I>, F, G>( in pair()
63 pub fn preceded<I, O1, O2, E: ParseError<I>, F, G>( in preceded()
97 pub fn terminated<I, O1, O2, E: ParseError<I>, F, G>( in terminated()
133 pub fn separated_pair<I, O1, O2, O3, E: ParseError<I>, F, G, H>( in separated_pair()
172 pub fn delimited<I, O1, O2, O3, E: ParseError<I>, F, G, H>( in delimited()
197 impl<Input, Output, Error: ParseError<Input>, F: Parser<Input, Output, Error>>
222 Input: Clone, $($ty),+ , Error: ParseError<Input>,
258 impl<I, E: ParseError<I>> Tuple<I, (), E> for () {
275 pub fn tuple<I, O, E: ParseError<I>, List: Tuple<I, O, E>>( in tuple()
/third_party/rust/crates/nom/src/bytes/
Dstreaming.rs4 use crate::error::ParseError;
31 pub fn tag<T, Input, Error: ParseError<Input>>( in tag()
73 pub fn tag_no_case<T, Input, Error: ParseError<Input>>( in tag_no_case()
117 pub fn is_not<T, Input, Error: ParseError<Input>>( in is_not()
153 pub fn is_a<T, Input, Error: ParseError<Input>>( in is_a()
188 pub fn take_while<F, Input, Error: ParseError<Input>>( in take_while()
222 pub fn take_while1<F, Input, Error: ParseError<Input>>( in take_while1()
260 pub fn take_while_m_n<F, Input, Error: ParseError<Input>>( in take_while_m_n()
343 pub fn take_till<F, Input, Error: ParseError<Input>>( in take_till()
375 pub fn take_till1<F, Input, Error: ParseError<Input>>( in take_till1()
[all …]
Dcomplete.rs4 use crate::error::ParseError;
32 pub fn tag<T, Input, Error: ParseError<Input>>( in tag()
74 pub fn tag_no_case<T, Input, Error: ParseError<Input>>( in tag_no_case()
117 pub fn is_not<T, Input, Error: ParseError<Input>>( in is_not()
151 pub fn is_a<T, Input, Error: ParseError<Input>>( in is_a()
183 pub fn take_while<F, Input, Error: ParseError<Input>>( in take_while()
213 pub fn take_while1<F, Input, Error: ParseError<Input>>( in take_while1()
249 pub fn take_while_m_n<F, Input, Error: ParseError<Input>>( in take_while_m_n()
330 pub fn take_till<F, Input, Error: ParseError<Input>>( in take_till()
361 pub fn take_till1<F, Input, Error: ParseError<Input>>( in take_till1()
[all …]
/third_party/rust/crates/nom/src/character/
Dcomplete.rs8 use crate::error::ParseError;
32 pub fn char<I, Error: ParseError<I>>(c: char) -> impl Fn(I) -> IResult<I, char, Error> in char()
61 pub fn satisfy<F, I, Error: ParseError<I>>(cond: F) -> impl Fn(I) -> IResult<I, char, Error> in satisfy()
89 pub fn one_of<I, T, Error: ParseError<I>>(list: T) -> impl Fn(I) -> IResult<I, char, Error> in one_of()
113 pub fn none_of<I, T, Error: ParseError<I>>(list: T) -> impl Fn(I) -> IResult<I, char, Error> in none_of()
141 pub fn crlf<T, E: ParseError<T>>(input: T) -> IResult<T, T, E> in crlf()
177 pub fn not_line_ending<T, E: ParseError<T>>(input: T) -> IResult<T, T, E> in not_line_ending()
227 pub fn line_ending<T, E: ParseError<T>>(input: T) -> IResult<T, T, E> in line_ending()
262 pub fn newline<I, Error: ParseError<I>>(input: I) -> IResult<I, char, Error> in newline()
286 pub fn tab<I, Error: ParseError<I>>(input: I) -> IResult<I, char, Error> in tab()
[all …]
Dstreaming.rs8 use crate::error::ParseError;
31 pub fn char<I, Error: ParseError<I>>(c: char) -> impl Fn(I) -> IResult<I, char, Error> in char()
61 pub fn satisfy<F, I, Error: ParseError<I>>(cond: F) -> impl Fn(I) -> IResult<I, char, Error> in satisfy()
90 pub fn one_of<I, T, Error: ParseError<I>>(list: T) -> impl Fn(I) -> IResult<I, char, Error> in one_of()
115 pub fn none_of<I, T, Error: ParseError<I>>(list: T) -> impl Fn(I) -> IResult<I, char, Error> in none_of()
140 pub fn crlf<T, E: ParseError<T>>(input: T) -> IResult<T, T, E> in crlf()
171 pub fn not_line_ending<T, E: ParseError<T>>(input: T) -> IResult<T, T, E> in not_line_ending()
218 pub fn line_ending<T, E: ParseError<T>>(input: T) -> IResult<T, T, E> in line_ending()
250 pub fn newline<I, Error: ParseError<I>>(input: I) -> IResult<I, char, Error> in newline()
270 pub fn tab<I, Error: ParseError<I>>(input: I) -> IResult<I, char, Error> in tab()
[all …]
/third_party/protobuf/python/google/protobuf/internal/
Dtext_format_test.py768 with self.assertRaises(text_format.ParseError) as e:
776 six.assertRaisesRegex(self, text_format.ParseError, (
783 six.assertRaisesRegex(self, text_format.ParseError, (
796 six.assertRaisesRegex(self, text_format.ParseError,
805 six.assertRaisesRegex(self, text_format.ParseError,
841 with six.assertRaisesRegex(self, text_format.ParseError,
921 six.assertRaisesRegex(self, text_format.ParseError, (
930 six.assertRaisesRegex(self, text_format.ParseError, (
938 six.assertRaisesRegex(self, text_format.ParseError,
1349 six.assertRaisesRegex(self, text_format.ParseError, (
[all …]
Djson_format_test.py110 json_format.ParseError,
812 json_format.ParseError,
900 json_format.ParseError,
958 self.assertRaises(json_format.ParseError,
1014 json_format.ParseError,
1019 json_format.ParseError,
1025 json_format.ParseError,
1032 json_format.ParseError,
1037 json_format.ParseError,
1046 json_format.ParseError,
[all …]
/third_party/rust/crates/nom/src/multi/
Dmod.rs7 use crate::error::ParseError;
57 E: ParseError<I>, in many0()
112 E: ParseError<I>, in many1()
173 E: ParseError<I>, in many_till()
236 E: ParseError<I>, in separated_list0()
310 E: ParseError<I>, in separated_list1()
388 E: ParseError<I>, in many_m_n()
456 E: ParseError<I>, in many0_count()
514 E: ParseError<I>, in many1_count()
573 E: ParseError<I>, in count()
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf.Conformance/
DConformance.cs840 case ResultOneofCase.ParseError: in ConformanceResponse()
841 ParseError = other.ParseError; in ConformanceResponse()
884 public string ParseError { property in Conformance.ConformanceResponse
885 get { return resultCase_ == ResultOneofCase.ParseError ? (string) result_ : ""; }
888 resultCase_ = ResultOneofCase.ParseError;
1004 ParseError = 1, enumerator
1038 if (ParseError != other.ParseError) return false; in Equals()
1053 if (resultCase_ == ResultOneofCase.ParseError) hash ^= ParseError.GetHashCode(); in GetHashCode()
1078 if (resultCase_ == ResultOneofCase.ParseError) { in WriteTo()
1080 output.WriteString(ParseError); in WriteTo()
[all …]
/third_party/rust/crates/nom/src/bits/
Dmod.rs7 use crate::error::{ErrorKind, ParseError};
42 E1: ParseError<(I, usize)> + ErrorConvert<E2>, in bits()
43 E2: ParseError<I>, in bits()
88 E1: ParseError<I> + ErrorConvert<E2>, in bytes()
89 E2: ParseError<(I, usize)>, in bytes()
/third_party/rust/crates/nom/src/branch/
Dmod.rs7 use crate::error::ParseError;
47 pub fn alt<I: Clone, O, E: ParseError<I>, List: Alt<I, O, E>>( in alt()
106 pub fn permutation<I: Clone, O, E: ParseError<I>, List: Permutation<I, O, E>>( in permutation()
130 Input: Clone, Output, Error: ParseError<Input>,
162 impl<Input, Output, Error: ParseError<Input>, A: Parser<Input, Output, Error>>
193 Input: Clone, $($ty),+ , Error: ParseError<Input>,
/third_party/rust/crates/nom/src/
Dtraits.rs2 use crate::error::{ErrorKind, ParseError};
454 fn split_at_position<P, E: ParseError<Self>>(&self, predicate: P) -> IResult<Self, Self, E> in split_at_position()
464 fn split_at_position1<P, E: ParseError<Self>>( in split_at_position1()
476 fn split_at_position_complete<P, E: ParseError<Self>>( in split_at_position_complete()
489 fn split_at_position1_complete<P, E: ParseError<Self>>( in split_at_position1_complete()
503 fn split_at_position<P, E: ParseError<Self>>(&self, predicate: P) -> IResult<Self, Self, E> in split_at_position()
513 fn split_at_position1<P, E: ParseError<Self>>( in split_at_position1()
528 fn split_at_position_complete<P, E: ParseError<Self>>( in split_at_position_complete()
541 fn split_at_position1_complete<P, E: ParseError<Self>>( in split_at_position1_complete()
565 fn split_at_position<P, E: ParseError<Self>>(&self, predicate: P) -> IResult<Self, Self, E> in split_at_position()
[all …]

12345