Home
last modified time | relevance | path

Searched refs:peek (Results 1 – 25 of 542) sorted by relevance

12345678910>>...22

/external/apache-commons-bcel/src/main/java/org/apache/bcel/verifier/structurals/
DInstConstraintVisitor.java390 … if (! (stack().peek() == o.getType(cpg)) ) {// the other xSTORE types are singletons in BCEL. in visitStoreInstruction()
391 …ntViolated(o, "Stack top type and STOREing Instruction type mismatch: Stack top: '"+stack().peek()+ in visitStoreInstruction()
396 final Type stacktop = stack().peek(); in visitStoreInstruction()
398 …ntViolated(o, "Stack top type and STOREing Instruction type mismatch: Stack top: '"+stack().peek()+ in visitStoreInstruction()
432 if (stack().peek() == Type.NULL) { in visitReturnInstruction()
435 if (! (stack().peek() instanceof ReferenceType)) { in visitReturnInstruction()
436 … constraintViolated(o, "Reference type expected on top of stack, but is: '"+stack().peek()+"'."); in visitReturnInstruction()
438 referenceTypeIsInitialized(o, (ReferenceType) (stack().peek())); in visitReturnInstruction()
448 if (! ( method_type.equals( stack().peek() ))) { in visitReturnInstruction()
450 "' on top of the stack. But stack top is a '"+stack().peek()+"'."); in visitReturnInstruction()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/reader/
DReaderBomTest.java34 assertEquals('t', reader.peek()); in testReader()
36 assertEquals('e', reader.peek()); in testReader()
38 assertEquals('s', reader.peek()); in testReader()
40 assertEquals('t', reader.peek()); in testReader()
42 assertEquals('\u0000', reader.peek()); in testReader()
50 assertEquals('t', reader.peek()); in testNoBom()
53 assertEquals('e', reader.peek()); in testNoBom()
55 assertEquals('s', reader.peek()); in testNoBom()
57 assertEquals('t', reader.peek()); in testNoBom()
59 assertEquals('\u0000', reader.peek()); in testNoBom()
[all …]
DReaderStringTest.java80 while (reader.peek() != '\u0000') { in testForward()
84 assertEquals('t', reader.peek()); in testForward()
86 assertEquals('e', reader.peek()); in testForward()
88 assertEquals('s', reader.peek()); in testForward()
90 assertEquals('t', reader.peek()); in testForward()
92 assertEquals('\u0000', reader.peek()); in testForward()
97 assertEquals('t', reader.peek(0)); in testPeekInt()
98 assertEquals('e', reader.peek(1)); in testPeekInt()
99 assertEquals('s', reader.peek(2)); in testPeekInt()
100 assertEquals('t', reader.peek(3)); in testPeekInt()
[all …]
/external/antlr/runtime/Ruby/lib/antlr3/template/
Dgroup-file-lexer.rb368 look_1_0 = @input.peek( 1 )
377 …if @input.peek( 1 ).between?( 0x30, 0x39 ) || @input.peek( 1 ).between?( 0x41, 0x5a ) || @input.pe…
414 if @input.peek( 1 ) == 0x5f || @input.peek( 1 ).between?( 0x61, 0x7a )
426 look_2_0 = @input.peek( 1 )
435 …if @input.peek( 1 ).between?( 0x30, 0x39 ) || @input.peek( 1 ).between?( 0x41, 0x5a ) || @input.pe…
476 look_3_0 = @input.peek( 1 )
479 look_3_1 = @input.peek( 2 )
482 look_3_4 = @input.peek( 3 )
495 look_3_2 = @input.peek( 2 )
548 look_6_0 = @input.peek( 1 )
[all …]
/external/rust/crates/syn/1.0.7/src/
Dstmt.rs109 while input.peek(Token![;]) { in parse_within()
159 && (ahead.peek(token::Brace) || ahead.peek(Ident)) in parse_stmt()
162 } else if ahead.peek(Token![let]) { in parse_stmt()
164 } else if ahead.peek(Token![pub]) in parse_stmt()
165 || ahead.peek(Token![crate]) && !ahead.peek2(Token![::]) in parse_stmt()
166 || ahead.peek(Token![extern]) && !ahead.peek2(Token![::]) in parse_stmt()
167 || ahead.peek(Token![use]) in parse_stmt()
168 || ahead.peek(Token![static]) && (ahead.peek2(Token![mut]) || ahead.peek2(Ident)) in parse_stmt()
169 || ahead.peek(Token![const]) in parse_stmt()
170 || ahead.peek(Token![unsafe]) && !ahead.peek2(token::Brace) in parse_stmt()
[all …]
Dop.rs90 if input.peek(Token![&&]) { in parse_binop()
92 } else if input.peek(Token![||]) { in parse_binop()
94 } else if input.peek(Token![<<]) { in parse_binop()
96 } else if input.peek(Token![>>]) { in parse_binop()
98 } else if input.peek(Token![==]) { in parse_binop()
100 } else if input.peek(Token![<=]) { in parse_binop()
102 } else if input.peek(Token![!=]) { in parse_binop()
104 } else if input.peek(Token![>=]) { in parse_binop()
106 } else if input.peek(Token![+]) { in parse_binop()
108 } else if input.peek(Token![-]) { in parse_binop()
[all …]
Dgenerics.rs514 if !input.peek(Token![<]) { in parse()
524 if input.peek(Token![>]) { in parse()
530 if allow_lifetime_param && lookahead.peek(Lifetime) { in parse()
535 } else if allow_type_param && lookahead.peek(Ident) { in parse()
541 } else if lookahead.peek(Token![const]) { in parse()
552 if input.peek(Token![>]) { in parse()
575 if lookahead.peek(Ident) { in parse()
580 } else if lookahead.peek(Lifetime) { in parse()
585 } else if lookahead.peek(Token![const]) { in parse()
603 if input.peek(Token![:]) { in parse()
[all …]
Dty.rs431 if input.peek(token::Group) { in ambig_ty()
437 if lookahead.peek(Token![for]) { in ambig_ty()
440 if !lookahead.peek(Ident) in ambig_ty()
441 && !lookahead.peek(Token![fn]) in ambig_ty()
442 && !lookahead.peek(Token![unsafe]) in ambig_ty()
443 && !lookahead.peek(Token![extern]) in ambig_ty()
444 && !lookahead.peek(Token![super]) in ambig_ty()
445 && !lookahead.peek(Token![self]) in ambig_ty()
446 && !lookahead.peek(Token![Self]) in ambig_ty()
447 && !lookahead.peek(Token![crate]) in ambig_ty()
[all …]
Dpat.rs395 if lookahead.peek(Ident) in parse()
406 ahead.is_empty() || ahead.peek(Token![,]) in parse()
409 || input.peek(Token![self]) && input.peek2(Token![::]) in parse()
410 || lookahead.peek(Token![::]) in parse()
411 || lookahead.peek(Token![<]) in parse()
412 || input.peek(Token![Self]) in parse()
413 || input.peek(Token![super]) in parse()
414 || input.peek(Token![extern]) in parse()
415 || input.peek(Token![crate]) in parse()
418 } else if lookahead.peek(Token![_]) { in parse()
[all …]
Dexpr.rs1295 && input.peek(Token![=]) in parse_expr()
1296 && !input.peek(Token![==]) in parse_expr()
1297 && !input.peek(Token![=>]) in parse_expr()
1315 } else if Precedence::Range >= base && input.peek(Token![..]) { in parse_expr()
1318 || input.peek(Token![,]) in parse_expr()
1319 || input.peek(Token![;]) in parse_expr()
1320 || !allow_struct.0 && input.peek(token::Brace) in parse_expr()
1341 } else if Precedence::Cast >= base && input.peek(Token![as]) { in parse_expr()
1350 } else if Precedence::Cast >= base && input.peek(Token![:]) && !input.peek(Token![::]) { in parse_expr()
1397 } else if Precedence::Cast >= base && input.peek(Token![as]) { in parse_expr()
[all …]
Dpath.rs220 if input.peek(Lifetime) && !input.peek2(Token![+]) { in parse()
224 if input.peek(Ident) && input.peek2(Token![=]) { in parse()
230 if input.peek(Ident) && input.peek2(Token![:]) && !input.peek2(Token![::]) { in parse()
234 if input.peek(Lit) { in parse()
239 if input.peek(token::Brace) { in parse()
257 if input.peek(Token![>]) { in parse()
262 if input.peek(Token![>]) { in parse()
294 if input.peek(Token![super]) in parse_helper()
295 || input.peek(Token![self]) in parse_helper()
296 || input.peek(Token![crate]) in parse_helper()
[all …]
/external/llvm/lib/CodeGen/MIRParser/
DMILexer.cpp44 char peek(int I = 0) const { return End - Ptr <= I ? 0 : Ptr[I]; } in peek() function in __anonc376e4fb0111::Cursor
86 while (isblank(C.peek())) in skipWhitespace()
95 if (C.peek() != ';') in skipComment()
97 while (!isNewlineChar(C.peek()) && !C.isEOF()) in skipComment()
119 char Char = C.peek(); in unescapeQuotedString()
121 if (C.peek(1) == '\\') { in unescapeQuotedString()
127 if (isxdigit(C.peek(1)) && isxdigit(C.peek(2))) { in unescapeQuotedString()
128 Str += hexDigitValue(C.peek(1)) * 16 + hexDigitValue(C.peek(2)); in unescapeQuotedString()
141 assert(C.peek() == '"'); in lexStringConstant()
142 for (C.advance(); C.peek() != '"'; C.advance()) { in lexStringConstant()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/MIRParser/
DMILexer.cpp50 char peek(int I = 0) const { return End - Ptr <= I ? 0 : Ptr[I]; } in peek() function in __anon0f96bb930111::Cursor
92 while (isblank(C.peek())) in skipWhitespace()
101 if (C.peek() != ';') in skipComment()
103 while (!isNewlineChar(C.peek()) && !C.isEOF()) in skipComment()
125 char Char = C.peek(); in unescapeQuotedString()
127 if (C.peek(1) == '\\') { in unescapeQuotedString()
133 if (isxdigit(C.peek(1)) && isxdigit(C.peek(2))) { in unescapeQuotedString()
134 Str += hexDigitValue(C.peek(1)) * 16 + hexDigitValue(C.peek(2)); in unescapeQuotedString()
147 assert(C.peek() == '"'); in lexStringConstant()
148 for (C.advance(); C.peek() != '"'; C.advance()) { in lexStringConstant()
[all …]
/external/rust/crates/syn/0.15.42/src/
Dop.rs90 if input.peek(Token![&&]) { in parse_binop()
92 } else if input.peek(Token![||]) { in parse_binop()
94 } else if input.peek(Token![<<]) { in parse_binop()
96 } else if input.peek(Token![>>]) { in parse_binop()
98 } else if input.peek(Token![==]) { in parse_binop()
100 } else if input.peek(Token![<=]) { in parse_binop()
102 } else if input.peek(Token![!=]) { in parse_binop()
104 } else if input.peek(Token![>=]) { in parse_binop()
106 } else if input.peek(Token![+]) { in parse_binop()
108 } else if input.peek(Token![-]) { in parse_binop()
[all …]
Dty.rs269 if input.peek(token::Group) { in ambig_ty()
275 if lookahead.peek(Token![for]) { in ambig_ty()
278 if !lookahead.peek(Ident) in ambig_ty()
279 && !lookahead.peek(Token![fn]) in ambig_ty()
280 && !lookahead.peek(Token![unsafe]) in ambig_ty()
281 && !lookahead.peek(Token![extern]) in ambig_ty()
282 && !lookahead.peek(Token![super]) in ambig_ty()
283 && !lookahead.peek(Token![self]) in ambig_ty()
284 && !lookahead.peek(Token![Self]) in ambig_ty()
285 && !lookahead.peek(Token![crate]) in ambig_ty()
[all …]
Dexpr.rs1096 && input.peek(Token![=]) in parse_expr()
1097 && !input.peek(Token![==]) in parse_expr()
1098 && !input.peek(Token![=>]) in parse_expr()
1116 } else if Precedence::Range >= base && input.peek(Token![..]) { in parse_expr()
1119 || input.peek(Token![,]) in parse_expr()
1120 || input.peek(Token![;]) in parse_expr()
1121 || !allow_struct.0 && input.peek(token::Brace) in parse_expr()
1142 } else if Precedence::Cast >= base && input.peek(Token![as]) { in parse_expr()
1151 } else if Precedence::Cast >= base && input.peek(Token![:]) && !input.peek(Token![::]) { in parse_expr()
1198 } else if Precedence::Cast >= base && input.peek(Token![as]) { in parse_expr()
[all …]
Dgenerics.rs486 if !input.peek(Token![<]) { in parse()
496 if input.peek(Token![>]) { in parse()
502 if allow_lifetime_param && lookahead.peek(Lifetime) { in parse()
507 } else if allow_type_param && lookahead.peek(Ident) { in parse()
513 } else if lookahead.peek(Token![const]) { in parse()
524 if input.peek(Token![>]) { in parse()
547 if lookahead.peek(Ident) { in parse()
552 } else if lookahead.peek(Lifetime) { in parse()
557 } else if lookahead.peek(Token![const]) { in parse()
575 if input.peek(Token![:]) { in parse()
[all …]
Ditem.rs793 let mut item = if lookahead.peek(Token![extern]) { in parse()
796 if lookahead.peek(Token![crate]) { in parse()
798 } else if lookahead.peek(Token![fn]) { in parse()
800 } else if lookahead.peek(token::Brace) { in parse()
802 } else if lookahead.peek(LitStr) { in parse()
805 if lookahead.peek(token::Brace) { in parse()
807 } else if lookahead.peek(Token![fn]) { in parse()
815 } else if lookahead.peek(Token![use]) { in parse()
817 } else if lookahead.peek(Token![static]) { in parse()
819 } else if lookahead.peek(Token![const]) { in parse()
[all …]
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/scanner/
DScannerImpl.java297 char ch = reader.peek(); in fetchMoreTokens()
1070 if ("---".equals(reader.prefix(3)) && Constant.NULL_BL_T_LINEBR.has(reader.peek(3))) { in checkDocumentStart()
1084 if ("...".equals(reader.prefix(3)) && Constant.NULL_BL_T_LINEBR.has(reader.peek(3))) { in checkDocumentEnd()
1096 return Constant.NULL_BL_T_LINEBR.has(reader.peek(1)); in checkBlockEntry()
1108 return Constant.NULL_BL_T_LINEBR.has(reader.peek(1)); in checkKey()
1121 return Constant.NULL_BL_T_LINEBR.has(reader.peek(1)); in checkValue()
1145 char ch = reader.peek(); in checkPlain()
1149 … || (Constant.NULL_BL_T_LINEBR.hasNo(reader.peek(1)) && (ch == '-' || (this.flowLevel == 0 && "?:" in checkPlain()
1179 if (reader.getIndex() == 0 && reader.peek() == '\uFEFF') { in scanToNextToken()
1187 while (reader.peek(ff) == ' ') { in scanToNextToken()
[all …]
/external/catch2/include/internal/
Dcatch_preprocessor.hpp41 #define CATCH_REC_LIST0(f, x, peek, ...) , f(x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST1)… argument
42 #define CATCH_REC_LIST1(f, x, peek, ...) , f(x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST0)… argument
43 #define CATCH_REC_LIST2(f, x, peek, ...) f(x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST1)… argument
45 …IST0_UD(f, userdata, x, peek, ...) , f(userdata, x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_L… argument
46 …IST1_UD(f, userdata, x, peek, ...) , f(userdata, x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_L… argument
47 …IST2_UD(f, userdata, x, peek, ...) f(userdata, x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_L… argument
/external/skia/docs/examples/
DPath_RawIter_peek.cpp12 SkPath::Verb verb, peek = iter.peek(); in draw() local
17 SkDebugf("peek %s %c= verb %s\n", verbStr[peek], peek == verb ? '=' : '!', verbStr[verb]); in draw()
18 peek = iter.peek(); in draw()
20 SkDebugf("peek %s %c= verb %s\n", verbStr[peek], peek == verb ? '=' : '!', verbStr[verb]); in draw()
/external/skia/src/sksl/lex/
DRegexParser.cpp22 char RegexParser::peek() { in peek() function in RegexParser
30 if (this->peek() != c) { in expect()
31 printf("expected '%c' at index %d, but found '%c'", c, (int) fIndex, this->peek()); in expect()
44 switch (this->peek()) { in term()
54 switch (this->peek()) { in quantifiedTerm()
65 switch (this->peek()) { in sequence()
89 char c = this->peek(); in literal()
92 fStack.push(this->escapeSequence(peek())); in literal()
114 if (this->peek() == '-') { in setItem()
116 if (peek() == ']') { in setItem()
[all …]
/external/skqp/src/sksl/lex/
DRegexParser.cpp22 char RegexParser::peek() { in peek() function in RegexParser
30 if (this->peek() != c) { in expect()
31 printf("expected '%c' at index %d, but found '%c'", c, (int) fIndex, this->peek()); in expect()
44 switch (this->peek()) { in term()
54 switch (this->peek()) { in quantifiedTerm()
65 switch (this->peek()) { in sequence()
89 char c = this->peek(); in literal()
92 fStack.push(this->escapeSequence(peek())); in literal()
114 if (this->peek() == '-') { in setItem()
116 if (peek() == ']') { in setItem()
[all …]
/external/libcxx/test/std/strings/basic.string/string.nonmembers/string.io/
Dstream_extract.pass.cpp31 assert(in.peek() == ' '); in main()
35 assert(in.peek() == ' '); in main()
40 assert(in.peek() == 'g'); in main()
53 assert(in.peek() == L' '); in main()
57 assert(in.peek() == L' '); in main()
62 assert(in.peek() == L'g'); in main()
77 assert(in.peek() == ' '); in main()
81 assert(in.peek() == ' '); in main()
86 assert(in.peek() == 'g'); in main()
100 assert(in.peek() == L' '); in main()
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/internal/
DThreadSafeHeapTest.kt24 assertEquals(null, h.peek()) in compareTo()
27 assertEquals(n1, h.peek()) in compareTo()
30 assertEquals(n1, h.peek()) in compareTo()
33 assertEquals(n1, h.peek()) in compareTo()
36 assertEquals(n1, h.peek()) in compareTo()
39 assertEquals(n1, h.peek()) in compareTo()
42 assertEquals(n2, h.peek()) in compareTo()
44 assertEquals(n3, h.peek()) in compareTo()
46 assertEquals(n3, h.peek()) in compareTo()
48 assertEquals(n5, h.peek()) in compareTo()
[all …]

12345678910>>...22