Home
last modified time | relevance | path

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

12345678910>>...29

/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/llvm-project/llvm/lib/CodeGen/MIRParser/
DMILexer.cpp46 char peek(int I = 0) const { return End - Ptr <= I ? 0 : Ptr[I]; } in peek() function in __anon9131fd050111::Cursor
88 while (isblank(C.peek())) in skipWhitespace()
97 if (C.peek() != ';') in skipComment()
99 while (!isNewlineChar(C.peek()) && !C.isEOF()) in skipComment()
107 if (C.peek() != '/' || C.peek(1) != '*') in skipMachineOperandComment()
110 while (C.peek() != '*' || C.peek(1) != '/') in skipMachineOperandComment()
135 char Char = C.peek(); in unescapeQuotedString()
137 if (C.peek(1) == '\\') { in unescapeQuotedString()
143 if (isxdigit(C.peek(1)) && isxdigit(C.peek(2))) { in unescapeQuotedString()
144 Str += hexDigitValue(C.peek(1)) * 16 + hexDigitValue(C.peek(2)); in unescapeQuotedString()
[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 __anon829dfdd70111::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/rust/crates/thiserror-impl/src/
Dattr.rs109 if begin_expr && input.peek(Token![.]) { in parse_token_expr()
125 begin_expr = input.peek(Token![break]) in parse_token_expr()
126 || input.peek(Token![continue]) in parse_token_expr()
127 || input.peek(Token![if]) in parse_token_expr()
128 || input.peek(Token![in]) in parse_token_expr()
129 || input.peek(Token![match]) in parse_token_expr()
130 || input.peek(Token![mut]) in parse_token_expr()
131 || input.peek(Token![return]) in parse_token_expr()
132 || input.peek(Token![while]) in parse_token_expr()
133 || input.peek(Token![+]) in parse_token_expr()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/MIRParser/
DMILexer.cpp49 char peek(int I = 0) const { return End - Ptr <= I ? 0 : Ptr[I]; } in peek() function in __anond5c0baf90111::Cursor
91 while (isblank(C.peek())) in skipWhitespace()
100 if (C.peek() != ';') in skipComment()
102 while (!isNewlineChar(C.peek()) && !C.isEOF()) in skipComment()
124 char Char = C.peek(); in unescapeQuotedString()
126 if (C.peek(1) == '\\') { in unescapeQuotedString()
132 if (isxdigit(C.peek(1)) && isxdigit(C.peek(2))) { in unescapeQuotedString()
133 Str += hexDigitValue(C.peek(1)) * 16 + hexDigitValue(C.peek(2)); in unescapeQuotedString()
146 assert(C.peek() == '"'); in lexStringConstant()
147 for (C.advance(); C.peek() != '"'; C.advance()) { in lexStringConstant()
[all …]
/external/rust/crates/syn/src/
Dop.rs89 if input.peek(Token![&&]) { in parse_binop()
91 } else if input.peek(Token![||]) { in parse_binop()
93 } else if input.peek(Token![<<]) { in parse_binop()
95 } else if input.peek(Token![>>]) { in parse_binop()
97 } else if input.peek(Token![==]) { in parse_binop()
99 } else if input.peek(Token![<=]) { in parse_binop()
101 } else if input.peek(Token![!=]) { in parse_binop()
103 } else if input.peek(Token![>=]) { in parse_binop()
105 } else if input.peek(Token![+]) { in parse_binop()
107 } else if input.peek(Token![-]) { in parse_binop()
[all …]
Dstmt.rs161 if ahead.peek(Token![!]) && (ahead.peek2(token::Brace) || ahead.peek2(Ident)) { in parse_stmt()
167 if input.peek(Token![let]) { in parse_stmt()
169 } else if input.peek(Token![pub]) in parse_stmt()
170 || input.peek(Token![crate]) && !input.peek2(Token![::]) in parse_stmt()
171 || input.peek(Token![extern]) in parse_stmt()
172 || input.peek(Token![use]) in parse_stmt()
173 || input.peek(Token![static]) && (input.peek2(Token![mut]) || input.peek2(Ident)) in parse_stmt()
174 || input.peek(Token![const]) && !input.peek2(token::Brace) in parse_stmt()
175 || input.peek(Token![unsafe]) && !input.peek2(token::Brace) in parse_stmt()
176 || input.peek(Token![async]) in parse_stmt()
[all …]
Dpat.rs329 && (ahead.peek(Token![::]) in parse()
330 || ahead.peek(Token![!]) in parse()
331 || ahead.peek(token::Brace) in parse()
332 || ahead.peek(token::Paren) in parse()
333 || ahead.peek(Token![..]) in parse()
335 && !(ahead.is_empty() || ahead.peek(Token![,]))) in parse()
338 ahead.parse::<Option<Token![self]>>()?.is_some() && ahead.peek(Token![::]) in parse()
339 } || lookahead.peek(Token![::]) in parse()
340 || lookahead.peek(Token![<]) in parse()
341 || input.peek(Token![Self]) in parse()
[all …]
Dty.rs370 if input.peek(token::Group) { in ambig_ty()
372 if input.peek(Token![::]) && input.peek3(Ident::peek_any) { in ambig_ty()
388 } else if input.peek(Token![<]) || input.peek(Token![::]) && input.peek3(Token![<]) { in ambig_ty()
405 if lookahead.peek(Token![for]) { in ambig_ty()
408 if !lookahead.peek(Ident) in ambig_ty()
409 && !lookahead.peek(Token![fn]) in ambig_ty()
410 && !lookahead.peek(Token![unsafe]) in ambig_ty()
411 && !lookahead.peek(Token![extern]) in ambig_ty()
412 && !lookahead.peek(Token![super]) in ambig_ty()
413 && !lookahead.peek(Token![self]) in ambig_ty()
[all …]
Dgenerics.rs607 if !input.peek(Token![<]) { in parse()
615 if input.peek(Token![>]) { in parse()
621 if lookahead.peek(Lifetime) { in parse()
626 } else if lookahead.peek(Ident) { in parse()
631 } else if lookahead.peek(Token![const]) { in parse()
636 } else if input.peek(Token![_]) { in parse()
649 if input.peek(Token![>]) { in parse()
673 if lookahead.peek(Ident) { in parse()
678 } else if lookahead.peek(Lifetime) { in parse()
683 } 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/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 assertNull(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 …]
/external/rust/crates/syn-mid/src/
Dpat.rs152 && (ahead.peek(Token![::]) in parse()
153 || ahead.peek(token::Brace) in parse()
154 || ahead.peek(token::Paren)) in parse()
157 ahead.parse::<Option<Token![self]>>()?.is_some() && ahead.peek(Token![::]) in parse()
158 } || lookahead.peek(Token![::]) in parse()
159 || lookahead.peek(Token![<]) in parse()
160 || input.peek(Token![Self]) in parse()
161 || input.peek(Token![super]) in parse()
162 || input.peek(Token![extern]) in parse()
163 || input.peek(Token![crate]) in parse()
[all …]
/external/llvm-project/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()
115 assert(in.peek() == ' '); in main()
119 assert(in.peek() == ' '); in main()
124 assert(in.peek() == 'g'); in main()
138 assert(in.peek() == L' '); in main()
[all …]
/external/one-true-awk/
Dlex.c94 static int peek(void) in peek() function
227 if (peek() == '\n') { in yylex()
230 } else if (peek() == '\r') { in yylex()
238 if (peek() == '&') { in yylex()
243 if (peek() == '|') { in yylex()
248 if (peek() == '=') { in yylex()
250 } else if (peek() == '~') { in yylex()
258 if (peek() == '=') { in yylex()
264 if (peek() == '=') { in yylex()
270 if (peek() == '=') { in yylex()
[all …]
/external/skia/tests/
DTDPQueueTest.cpp20 REPORTER_ASSERT(reporter, 0 == heap.peek()); in simple_test()
27 REPORTER_ASSERT(reporter, 0 == heap.peek()); in simple_test()
30 REPORTER_ASSERT(reporter, 1 == heap.peek()); in simple_test()
38 REPORTER_ASSERT(reporter, 0 == heap.peek()); in simple_test()
41 REPORTER_ASSERT(reporter, 1 == heap.peek()); in simple_test()
44 REPORTER_ASSERT(reporter, 2 == heap.peek()); in simple_test()
53 REPORTER_ASSERT(reporter, 0 == heap.peek()); in simple_test()
56 REPORTER_ASSERT(reporter, 1 == heap.peek()); in simple_test()
59 REPORTER_ASSERT(reporter, 2 == heap.peek()); in simple_test()
62 REPORTER_ASSERT(reporter, 3 == heap.peek()); in simple_test()
[all …]
/external/skqp/tests/
DTDPQueueTest.cpp20 REPORTER_ASSERT(reporter, 0 == heap.peek()); in simple_test()
27 REPORTER_ASSERT(reporter, 0 == heap.peek()); in simple_test()
30 REPORTER_ASSERT(reporter, 1 == heap.peek()); in simple_test()
38 REPORTER_ASSERT(reporter, 0 == heap.peek()); in simple_test()
41 REPORTER_ASSERT(reporter, 1 == heap.peek()); in simple_test()
44 REPORTER_ASSERT(reporter, 2 == heap.peek()); in simple_test()
53 REPORTER_ASSERT(reporter, 0 == heap.peek()); in simple_test()
56 REPORTER_ASSERT(reporter, 1 == heap.peek()); in simple_test()
59 REPORTER_ASSERT(reporter, 2 == heap.peek()); in simple_test()
62 REPORTER_ASSERT(reporter, 3 == heap.peek()); in simple_test()
[all …]
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DQueueDispatcher.java40 if (failFastResponse != null && responseQueue.peek() == null) { in dispatch()
48 @Override public MockResponse peek() { in peek() method in QueueDispatcher
49 MockResponse peek = responseQueue.peek(); in peek() local
50 if (peek != null) return peek; in peek()
52 return super.peek(); in peek()
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DQueueDispatcher.java40 if (failFastResponse != null && responseQueue.peek() == null) { in dispatch()
48 @Override public MockResponse peek() { in peek() method in QueueDispatcher
49 MockResponse peek = responseQueue.peek(); in peek() local
50 if (peek != null) return peek; in peek()
52 return super.peek(); in peek()

12345678910>>...29