Home
last modified time | relevance | path

Searched refs:ParseResult (Results 1 – 25 of 232) sorted by relevance

12345678910

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/
DJavaParser.java105 public <N extends Node> ParseResult<N> parse(ParseStart<N> start, Provider provider) { in parse()
116ParseResult<N> result = new ParseResult<>(resultNode, parser.problems, parser.getCommentsCollectio… in parse()
127 return new ParseResult<>(null, parser.problems, parser.getCommentsCollection()); in parse()
146 public ParseResult<CompilationUnit> parse(final InputStream in, Charset encoding) { in parse()
158 public ParseResult<CompilationUnit> parse(final InputStream in) { in parse()
174 …public ParseResult<CompilationUnit> parse(final File file, final Charset encoding) throws FileNotF… in parse()
175 ParseResult<CompilationUnit> result = parse(COMPILATION_UNIT, provider(file, encoding)); in parse()
189 public ParseResult<CompilationUnit> parse(final File file) throws FileNotFoundException { in parse()
190ParseResult<CompilationUnit> result = parse(COMPILATION_UNIT, provider(file, configuration.getChar… in parse()
207 …public ParseResult<CompilationUnit> parse(final Path path, final Charset encoding) throws IOExcept… in parse()
[all …]
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/
DJava1_1ValidatorTest.java4 import com.github.javaparser.ParseResult;
26ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topClass()
45ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedClass()
61ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{ void x… in localClass()
81ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topInterface()
101ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedInterface()
118ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in constructor()
138ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{X(" + a… in constructorParameter()
159ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in classMethod()
174ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X{" +… in interfaceMethod()
[all …]
DJava10ValidatorTest.java4 import com.github.javaparser.ParseResult;
23 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("var a = 5;")); in varAllowedInLocalVariableDeclaration()
29 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("for(var a : as){}")); in varAllowedInForEach()
35ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("for(var a = 5;a<9;a++){}")); in varAllowedInOldFor()
41 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("int a = (var)20;")); in varNotAllowedInCast()
47ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("try(var f = new FileReader(\… in varNotAllowedInTryWithResources()
53ParseResult<BodyDeclaration<?>> result = javaParser.parse(CLASS_BODY, provider("var a = 20;")); in varNotAllowedInField()
59 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("new X<var>();")); in varNotAllowedInTypeArguments()
65ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("x((var x) -> null);")); in varNotAllowedInLambdaParameters()
71 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("var a;")); in emptyInitializerNotAllowed()
[all …]
DJava5ValidatorTest.java4 import com.github.javaparser.ParseResult;
23ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X<A>{List… in genericsWithoutDiamond()
29ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topAnnotationDeclaration()
49ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedAnnotationDeclaration()
66ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("@interface X{" … in annotationMember()
87ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topEnum()
108ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedEnum()
126 ParseResult<Parameter> result = javaParser.parse(PARAMETER, provider("String... x")); in varargs()
132 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("for(X x: xs){}")); in foreach()
138ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("for(int i, j : nums){}")); in noMultipleVariablesInForEach()
[all …]
DJava1_2ValidatorTest.java4 import com.github.javaparser.ParseResult;
23ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topClass()
42ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedClass()
58ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{ void x… in localClass()
78ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topInterface()
98ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedInterface()
115ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in constructor()
135ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{X(" + a… in constructorParameter()
157ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in classMethod()
172ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X{" +… in interfaceMethod()
[all …]
DJava1_0ValidatorTest.java4 import com.github.javaparser.ParseResult;
29 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("try(X x=new Y()){}")); in tryWithoutResources()
37ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X extends… in classExtendingMoreThanOne()
43ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X imp… in interfaceUsingImplements()
49ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X {{}… in interfaceWithInitializer()
55ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X {defaul… in defaultInClass()
61 ParseResult<Expression> result = javaParser.parse(EXPRESSION, provider("(1==2)=3")); in leftHandAssignmentCannotBeAConditional()
67 ParseResult<Expression> result = javaParser.parse(EXPRESSION, provider("()=3")); in leftHandAssignmentCannotBeEmptyBraces()
75 ParseResult<Expression> result = javaParser.parse(EXPRESSION, provider("(i) += (i) += 1")); in leftHandAssignmentCanBeInBraces()
81ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{class Y… in noInnerClasses()
[all …]
DJava7ValidatorTest.java4 import com.github.javaparser.ParseResult;
29ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X<A>{List… in generics()
35ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X {de… in defaultMethodWithoutBody()
41 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("try{}")); in tryWithoutAnything()
47ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("try(Reader r = new Reader())… in tryWithResourceVariableDeclaration()
53 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("try(a.b.c){}")); in tryWithResourceReference()
59ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("switch(x){case \"abc\": ;}")… in stringsInSwitch()
65 ParseResult<Expression> result = javaParser.parse(EXPRESSION, provider("0b01")); in binaryIntegerLiterals()
71 ParseResult<Expression> result = javaParser.parse(EXPRESSION, provider("1_000_000")); in underscoresInIntegerLiterals()
77ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("try{}catch(Abc|Def e){}")); in multiCatch()
[all …]
DJava1_4ValidatorTest.java4 import com.github.javaparser.ParseResult;
22 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("assert a;")); in yesAssert()
28ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X<A>{List… in noGenerics()
37ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("@Abc @Def() @Gh… in noAnnotations()
47 ParseResult<Parameter> result = javaParser.parse(PARAMETER, provider("String... x")); in novarargs()
53 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("for(X x: xs){}")); in noforeach()
59ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("import static x… in staticImport()
67 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("int enum;")); in enumAllowedAsIdentifier()
DJava8ValidatorTest.java4 import com.github.javaparser.ParseResult;
23ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X {void a… in localInterface()
29ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{int x()… in lambdaParameter()
52ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X{" +… in interfaceMethod()
67ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X {de… in defaultMethodWithoutBody()
73 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("a(() -> 1);")); in lambdas()
79ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("open module x {… in noModules()
/external/webrtc/api/audio_codecs/
Daudio_decoder.cc58 AudioDecoder::ParseResult::ParseResult() = default;
59 AudioDecoder::ParseResult::ParseResult(ParseResult&& b) = default;
60 AudioDecoder::ParseResult::ParseResult(uint32_t timestamp, in ParseResult() function in webrtc::AudioDecoder::ParseResult
67 AudioDecoder::ParseResult::~ParseResult() = default;
69 AudioDecoder::ParseResult& AudioDecoder::ParseResult::operator=(
70 ParseResult&& b) = default;
72 std::vector<AudioDecoder::ParseResult> AudioDecoder::ParsePayload( in ParsePayload()
75 std::vector<ParseResult> results; in ParsePayload()
Daudio_decoder.h68 struct ParseResult { struct
69 ParseResult();
70 ParseResult(uint32_t timestamp,
73 ParseResult(ParseResult&& b);
74 ~ParseResult();
76 ParseResult& operator=(ParseResult&& b); argument
93 virtual std::vector<ParseResult> ParsePayload(rtc::Buffer&& payload, argument
/external/rust/crates/chrono/src/format/
Dscan.rs10 use super::{ParseResult, INVALID, OUT_OF_RANGE, TOO_SHORT};
37 pub fn number(s: &str, min: usize, max: usize) -> ParseResult<(&str, i64)> { in number()
70 pub fn nanosecond(s: &str) -> ParseResult<(&str, i64)> { in nanosecond()
89 pub fn nanosecond_fixed(s: &str, digits: usize) -> ParseResult<(&str, i64)> { in nanosecond_fixed()
102 pub fn short_month0(s: &str) -> ParseResult<(&str, u8)> { in short_month0()
126 pub fn short_weekday(s: &str) -> ParseResult<(&str, Weekday)> { in short_weekday()
146 pub fn short_or_long_month0(s: &str) -> ParseResult<(&str, u8)> { in short_or_long_month0()
164 pub fn short_or_long_weekday(s: &str) -> ParseResult<(&str, Weekday)> { in short_or_long_weekday()
181 pub fn char(s: &str, c1: u8) -> ParseResult<&str> { in char()
190 pub fn space(s: &str) -> ParseResult<&str> { in space()
[all …]
/external/rust/crates/pest/src/
Dparser_state.rs71 pub type ParseResult<S> = Result<S, S>; typedef
153 F: FnOnce(Box<ParserState<'i, R>>) -> ParseResult<Box<ParserState<'i, R>>>, in state()
256 fn inc_call_check_limit(mut self: Box<Self>) -> ParseResult<Box<Self>> { in inc_call_check_limit()
290 pub fn rule<F>(mut self: Box<Self>, rule: R, f: F) -> ParseResult<Box<Self>> in rule()
292 F: FnOnce(Box<Self>) -> ParseResult<Box<Self>>, in rule()
459 pub fn sequence<F>(mut self: Box<Self>, f: F) -> ParseResult<Box<Self>> in sequence()
461 F: FnOnce(Box<Self>) -> ParseResult<Box<Self>>, in sequence()
509 pub fn repeat<F>(mut self: Box<Self>, mut f: F) -> ParseResult<Box<Self>> in repeat()
511 F: FnMut(Box<Self>) -> ParseResult<Box<Self>>, in repeat()
551 pub fn optional<F>(mut self: Box<Self>, f: F) -> ParseResult<Box<Self>> in optional()
[all …]
/external/rust/crates/clap/3.2.23/src/parser/
Dparser.rs148 ParseResult::NoArg => { in get_matches_with()
151 ParseResult::ValuesDone => { in get_matches_with()
155 ParseResult::Opt(id) => { in get_matches_with()
159 ParseResult::FlagSubCommand(name) => { in get_matches_with()
167 ParseResult::EqualsNotProvided { arg } => { in get_matches_with()
175 ParseResult::NoMatchingArg { arg } => { in get_matches_with()
183 ParseResult::UnneededAttachedValue { rest, used, arg } => { in get_matches_with()
192 ParseResult::MaybeHyphenValue => { in get_matches_with()
195 ParseResult::AttachedValueNotConsumed => { in get_matches_with()
219 ParseResult::NoArg => { in get_matches_with()
[all …]
/external/rust/crates/protobuf/src/text_format/
Dparse.rs53 pub type ParseResult<A> = Result<A, ParseErrorWithoutLoc>; typedef
64 fn next_field_name(&mut self) -> ParseResult<String> { in next_field_name()
68 fn read_colon(&mut self, desc: &'static str) -> ParseResult<()> { in read_colon() argument
72 fn read_enum<'e>(&mut self, e: &'e EnumDescriptor) -> ParseResult<EnumValueDescriptor> { in read_enum()
84 fn read_u64(&mut self) -> ParseResult<u64> { in read_u64()
90 fn read_u32(&mut self) -> ParseResult<u32> { in read_u32()
101 fn read_i64(&mut self) -> ParseResult<i64> { in read_i64()
116 fn read_i32(&mut self) -> ParseResult<i32> { in read_i32()
124 fn read_f64(&mut self) -> ParseResult<f64> { in read_f64()
138 fn read_f32(&mut self) -> ParseResult<f32> { in read_f32()
[all …]
/external/webrtc/common_video/h264/
Dsps_vui_rewriter.cc90 SpsVuiRewriter::ParseResult& out_vui_rewritten);
103 SpsVuiRewriter::ParseResult& out_vui_rewritten);
108 void SpsVuiRewriter::UpdateStats(ParseResult result, Direction direction) { in UpdateStats()
110 case SpsVuiRewriter::ParseResult::kVuiRewritten: in UpdateStats()
118 case SpsVuiRewriter::ParseResult::kVuiOk: in UpdateStats()
126 case SpsVuiRewriter::ParseResult::kFailure: in UpdateStats()
137 SpsVuiRewriter::ParseResult SpsVuiRewriter::ParseAndRewriteSps( in ParseAndRewriteSps()
150 return ParseResult::kFailure; in ParseAndRewriteSps()
178 ParseResult vui_updated; in ParseAndRewriteSps()
182 return ParseResult::kFailure; in ParseAndRewriteSps()
[all …]
Dsps_vui_rewriter_unittest.cc305 SpsVuiRewriter::ParseResult expected_parse_result) { in TestSps()
312 SpsVuiRewriter::ParseResult result = SpsVuiRewriter::ParseAndRewriteSps( in TestSps()
323 if (result == SpsVuiRewriter::ParseResult::kVuiRewritten) { in TestSps()
329 EXPECT_EQ(SpsVuiRewriter::ParseResult::kVuiOk, result); in TestSps()
341 SpsVuiRewriter::ParseResult>> {
347 SpsVuiRewriter::ParseResult expected_parse_result = in TEST_P()
358 SpsVuiRewriter::ParseResult::kVuiOk),
361 SpsVuiRewriter::ParseResult::kVuiOk),
364 SpsVuiRewriter::ParseResult::kVuiOk),
367 SpsVuiRewriter::ParseResult::kVuiRewritten),
[all …]
/external/skia/modules/svg/include/
DSkSVGAttributeParser.h29 template <typename T> using ParseResult = SkTLazy<T>; variable
31 template <typename T> static ParseResult<T> parse(const char* value) { in parse()
32 ParseResult<T> result; in parse()
41 static ParseResult<T> parse(const char* expectedName, in parse()
48 return ParseResult<T>(); in parse()
52 static ParseResult<PropertyT> parseProperty(const char* expectedName, in parseProperty()
56 return ParseResult<PropertyT>(); in parseProperty()
61 return ParseResult<PropertyT>(&result); in parseProperty()
67 return ParseResult<PropertyT>(&result); in parseProperty()
70 return ParseResult<PropertyT>(); in parseProperty()
/external/rust/crates/clap/src/parser/
Dparser.rs145 ParseResult::NoArg => { in get_matches_with()
148 ParseResult::ValuesDone => { in get_matches_with()
152 ParseResult::Opt(id) => { in get_matches_with()
156 ParseResult::FlagSubCommand(name) => { in get_matches_with()
164 ParseResult::EqualsNotProvided { arg } => { in get_matches_with()
172 ParseResult::NoMatchingArg { arg } => { in get_matches_with()
183 ParseResult::UnneededAttachedValue { rest, used, arg } => { in get_matches_with()
192 ParseResult::MaybeHyphenValue => { in get_matches_with()
195 ParseResult::AttachedValueNotConsumed => { in get_matches_with()
218 ParseResult::NoArg => { in get_matches_with()
[all …]
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DPathTypeTest.java20 import static com.google.common.jimfs.PathType.ParseResult;
49 ParseResult path = type.parsePath("foo/bar/baz/one\\two"); in testParsePath()
52 ParseResult path2 = type.parsePath("$one//\\two"); in testParsePath()
58 ParseResult path = type.parsePath("foo/bar\\baz"); in testToString()
61 ParseResult path2 = type.parsePath("$/foo/bar"); in testToString()
97 static void assertParseResult(ParseResult result, @NullableDecl String root, String... names) { in assertParseResult()
103 ParseResult result = type.parsePath(path); in assertUriRoundTripsCorrectly()
105 ParseResult parsedUri = type.fromUri(uri); in assertUriRoundTripsCorrectly()
118 public ParseResult parsePath(String path) { in parsePath()
125 return new ParseResult(root, splitter().split(path)); in parsePath()
[all …]
/external/ukey2/src/main/cpp/include/securegcm/
Dukey2_handshake.h107 struct ParseResult { struct
116 ParseResult ParseHandshakeMessage(const string& handshake_message); argument
178 ParseResult ParseClientInitUkey2Message(const string& handshake_message);
182 ParseResult ParseServerInitUkey2Message(const string& handshake_message);
186 ParseResult ParseClientFinishUkey2Message(const string& handshake_message);
190 ParseResult CreateFailedResultWithAlert(Ukey2Alert::AlertType alert_type,
195 ParseResult CreateFailedResultWithoutAlert(const string& error_message);
198 ParseResult CreateSuccessResult();
/external/rust/crates/pest_meta/src/
Dgrammar.rs2ParseResult < :: std :: boxed :: Box < :: pest :: ParserState < '_ , Rule >> > { if state . atomic… in skip()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/utils/
DSourceRoot.java5 import com.github.javaparser.ParseResult;
55 Result process(Path localPath, Path absolutePath, ParseResult<CompilationUnit> result); in process()
59 private final Map<Path, ParseResult<CompilationUnit>> cache = new ConcurrentHashMap<>();
94 …public ParseResult<CompilationUnit> tryToParse(String startPackage, String filename, ParserConfigu… in tryToParse()
104 final ParseResult<CompilationUnit> result = new JavaParser(configuration) in tryToParse()
119 …public ParseResult<CompilationUnit> tryToParse(String startPackage, String filename) throws IOExce… in tryToParse()
131 public List<ParseResult<CompilationUnit>> tryToParse(String startPackage) throws IOException { in tryToParse()
171 public List<ParseResult<CompilationUnit>> tryToParse() throws IOException { in tryToParse()
187 public List<ParseResult<CompilationUnit>> tryToParseParallelized(String startPackage) { in tryToParseParallelized()
219 public List<ParseResult<CompilationUnit>> tryToParseParallelized() { in tryToParseParallelized()
[all …]
/external/rust/crates/combine/src/parser/
Dmod.rs9 ParseResult::{self, *},
43 ) -> $crate::error::ParseResult<Self::Output, <$input_type as $crate::StreamOnce>::Error> {
52 ) -> $crate::error::ParseResult<Self::Output, <$input_type as $crate::StreamOnce>::Error> {
144 ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error> { in parse_stream()
148 if let ParseResult::PeekErr(ref mut error) = result { in parse_stream()
183 ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error> { in parse_lazy()
214 ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error> { in parse_stream_partial()
217 if let ParseResult::PeekErr(ref mut error) = result { in parse_stream_partial()
244 ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error> { in parse_first()
259 ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error> { in parse_partial()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/message2/
DMf2Serializer.java185 ParseResult<Pattern> patternResult = parsePattern(i); in parseMessage()
195 ParseResult<List<Expression>> selectorResult = parseSelector(i); in parseMessage()
200 ParseResult<Variant> variantResult = parseVariant(i); in parseMessage()
214 private ParseResult<Variant> parseVariant(int startToken) { in parseVariant()
223 return new ParseResult<>(i, result.build()); in parseVariant()
236 ParseResult<Pattern> patternResult = parsePattern(i); in parseVariant()
252 private ParseResult<List<Expression>> parseSelector(int startToken) { in parseSelector()
261 return new ParseResult<>(i, result); in parseSelector()
265 ParseResult<Expression> exprResult = parseExpression(i); in parseSelector()
292 ParseResult<Expression> exprResult = parseExpression(i); in parseDeclaration()
[all …]

12345678910