Home
last modified time | relevance | path

Searched refs:peek (Results 1 - 25 of 250) sorted by relevance

12345678910

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/MIRParser/
H A DMILexer.cpp49 char peek(int I = 0) const { return End - Ptr <= I ? 0 : Ptr[I]; } in peek() function in __anon24038::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( in unescapeQuotedString()
[all...]
/third_party/rust/crates/syn/src/
H A Dop.rs87 if input.peek(Token![+=]) { in parse()
89 } else if input.peek(Token![-=]) { in parse()
91 } else if input.peek(Token![*=]) { in parse()
93 } else if input.peek(Token![/=]) { in parse()
95 } else if input.peek(Token![%=]) { in parse()
97 } else if input.peek(Token![^=]) { in parse()
99 } else if input.peek(Token![&=]) { in parse()
101 } else if input.peek(Token![|=]) { in parse()
103 } else if input.peek(Token![<<=]) { in parse()
105 } else if input.peek(Toke in parse()
[all...]
H A Dpat.rs264 if lookahead.peek(Ident) in parse_single()
270 || input.peek(Token![self]) && input.peek2(Token![::]) in parse_single()
271 || lookahead.peek(Token![::]) in parse_single()
272 || lookahead.peek(Token![<]) in parse_single()
273 || input.peek(Token![Self]) in parse_single()
274 || input.peek(Token![super]) in parse_single()
275 || input.peek(Token![crate]) in parse_single()
278 } else if lookahead.peek(Token![_]) { in parse_single()
280 } else if input.peek(Token![box]) { in parse_single()
282 } else if input.peek(Toke in parse_single()
[all...]
H A Dexpr.rs1171 input.peek(Ident::peek_any) // value name or keyword in can_begin_expr()
1172 || input.peek(token::Paren) // tuple in can_begin_expr()
1173 || input.peek(token::Bracket) // array in can_begin_expr()
1174 || input.peek(token::Brace) // block in can_begin_expr()
1175 || input.peek(Lit) // literal in can_begin_expr()
1176 || input.peek(Token![!]) && !input.peek(Token![!=]) // operator not in can_begin_expr()
1177 || input.peek(Token![-]) && !input.peek(Token![-=]) && !input.peek(Toke in can_begin_expr()
[all...]
H A Dty.rs303 if input.peek(token::Group) {
305 if input.peek(Token![::]) && input.peek3(Ident::peek_any) {
321 } else if input.peek(Token![<]) && allow_group_generic
322 || input.peek(Token![::]) && input.peek3(Token![<])
340 if lookahead.peek(Token![for]) {
343 if !lookahead.peek(Ident)
344 && !lookahead.peek(Token![fn])
345 && !lookahead.peek(Token![unsafe])
346 && !lookahead.peek(Token![extern])
347 && !lookahead.peek(Toke
[all...]
H A Dgenerics.rs541 if !input.peek(Token![<]) { in parse()
549 if input.peek(Token![>]) { in parse()
555 if lookahead.peek(Lifetime) { in parse()
560 } else if lookahead.peek(Ident) { in parse()
565 } else if lookahead.peek(Token![const]) { in parse()
570 } else if input.peek(Token![_]) { in parse()
583 if input.peek(Token![>]) { in parse()
607 if lookahead.peek(Ident) { in parse()
612 } else if lookahead.peek(Lifetime) { in parse()
617 } else if lookahead.peek(Toke in parse()
[all...]
H A Dstmt.rs191 if ahead.peek(Token![!]) { in parse_stmt()
203 if input.peek(Token![let]) && !input.peek(token::Group) { in parse_stmt()
205 } else if input.peek(Token![pub]) in parse_stmt()
206 || input.peek(Token![crate]) && !input.peek2(Token![::]) in parse_stmt()
207 || input.peek(Token![extern]) in parse_stmt()
208 || input.peek(Token![use]) in parse_stmt()
209 || input.peek(Token![static]) in parse_stmt()
214 || input.peek(Token![const]) in parse_stmt()
223 || input.peek(Toke in parse_stmt()
[all...]
H A Ditem.rs919 let mut item = if lookahead.peek(Token![fn]) || peek_signature(&ahead) {
922 if input.peek(Token![;]) {
928 } else if lookahead.peek(Token![extern]) {
931 if lookahead.peek(Token![crate]) {
933 } else if lookahead.peek(token::Brace) {
935 } else if lookahead.peek(LitStr) {
938 if lookahead.peek(token::Brace) {
946 } else if lookahead.peek(Token![use]) {
952 } else if lookahead.peek(Token![static]) {
957 if input.peek(Toke
[all...]
H A Dpath.rs293 if input.peek(Lifetime) && !input.peek2(Token![+]) { in parse()
297 if input.peek(Lit) || input.peek(token::Brace) { in parse()
321 return if input.peek(Lit) || input.peek(token::Brace) { in parse()
352 if input.peek(Token![,]) || input.peek(Token![>]) { in parse()
357 if !input.peek(Token![+]) { in parse()
380 if input.peek(Lit) {
385 if input.peek(Iden
[all...]
H A Drestriction.rs70 if input.peek(token::Group) { in parse()
79 if input.peek(Token![pub]) { in parse()
91 if input.peek(token::Paren) { in parse_pub()
96 if content.peek(Token![crate]) in parse_pub()
97 || content.peek(Token![self]) in parse_pub()
98 || content.peek(Token![super]) in parse_pub()
115 } else if content.peek(Token![in]) { in parse_pub()
H A Dparse.rs52 //! if lookahead.peek(Token![struct]) {
54 //! } else if lookahead.peek(Token![enum]) {
511 /// Note that this method does not use turbofish syntax. Pass the peek type
514 /// - `input.peek(Token![struct])`
515 /// - `input.peek(Token![==])`
516 /// - `input.peek(syn::Ident)`&emsp;*(does not accept keywords)*
517 /// - `input.peek(syn::Ident::peek_any)`
518 /// - `input.peek(Lifetime)`
519 /// - `input.peek(token::Brace)`
554 /// if input.peek(Toke
576 pub fn peek<T: Peek>(&self, token: T) -> bool { peek() functions
[all...]
H A Dderive.rs73 if lookahead.peek(Token![struct]) { in parse()
92 } else if lookahead.peek(Token![enum]) { in parse()
111 } else if lookahead.peek(Token![union]) { in parse()
140 if lookahead.peek(Token![where]) {
145 if where_clause.is_none() && lookahead.peek(token::Paren) {
149 if lookahead.peek(Token![where]) {
154 if lookahead.peek(Token![;]) {
160 } else if lookahead.peek(token::Brace) {
163 } else if lookahead.peek(Token![;]) {
/third_party/PyYAML/lib/yaml/
H A Dscanner.py55 # self.peek(i=0) # peek the next i-th character
56 # self.prefix(l=1) # peek the next l characters
169 ch = self.peek()
695 and self.peek(3) in '\0 \t\r\n\x85\u2028\u2029':
703 and self.peek(3) in '\0 \t\r\n\x85\u2028\u2029':
709 return self.peek(1) in '\0 \t\r\n\x85\u2028\u2029'
719 return self.peek(1) in '\0 \t\r\n\x85\u2028\u2029'
729 return self.peek(1) in '\0 \t\r\n\x85\u2028\u2029'
745 ch = self.peek()
[all...]
/third_party/node/test/parallel/
H A Dtest-timers-linked-list.js44 assert.strictEqual(L.peek(list), null);
48 assert.strictEqual(L.peek(list), A);
52 assert.strictEqual(L.peek(list), A);
56 assert.strictEqual(L.peek(list), A);
60 assert.strictEqual(L.peek(list), A);
67 assert.strictEqual(L.peek(list), C);
72 assert.strictEqual(L.peek(list), C);
76 assert.strictEqual(L.peek(list), D);
80 assert.strictEqual(L.peek(list), D);
84 assert.strictEqual(L.peek(lis
[all...]
/third_party/skia/src/sksl/lex/
H A 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()
90 char c = this->peek(); in literal()
93 fStack.push(this->escapeSequence(peek())); in literal()
115 if (this->peek() == '-') { in setItem()
117 if (peek() in setItem()
[all...]
/third_party/libabigail/src/
H A Dabg-ini.cc904 peek(bool& escaped) in peek() function in abigail::ini::read_context
910 char c = in_.peek(); in peek()
911 if (handle_escape(c, /*peek=*/true)) in peek()
929 peek() in peek() function in abigail::ini::read_context
932 return peek(escaped); in peek()
1002 /// read_context::peek() functions.
1004 /// @param peek if true, it means this function was called after the
1005 /// caller issued a read_context::peek() call, rather than a
1010 handle_escape(char& c, bool peek = false) in handle_escape()
1021 if (peek) in handle_escape()
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
H A DPatternStringParser.java227 int peek() { in peek() method in PatternStringParser.ParserState
250 int codePoint = peek(); in next()
271 if (state.peek() == ';') { in consumePattern()
274 if (state.peek() != -1) { in consumePattern()
279 if (state.peek() != -1) { in consumePattern()
300 if (state.peek() != '*') { in consumePadding()
317 switch (state.peek()) { in consumeAffix()
365 if (state.peek() == -1) { in consumeLiteral()
367 } else if (state.peek() == '\'') { in consumeLiteral()
369 while (state.peek() ! in consumeLiteral()
[all...]
/third_party/skia/tests/
H A 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...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/
H A DPatternStringParser.java226 int peek() { in peek() method in PatternStringParser.ParserState
235 int codePoint = peek(); in next()
256 if (state.peek() == ';') { in consumePattern()
259 if (state.peek() != -1) { in consumePattern()
264 if (state.peek() != -1) { in consumePattern()
285 if (state.peek() != '*') { in consumePadding()
302 switch (state.peek()) { in consumeAffix()
350 if (state.peek() == -1) { in consumeLiteral()
352 } else if (state.peek() == '\'') { in consumeLiteral()
354 while (state.peek() ! in consumeLiteral()
[all...]
/third_party/skia/third_party/externals/icu/source/i18n/
H A Dnumber_patternstring.cpp122 UChar32 ParsedPatternInfo::ParserState::peek() { in peek() function in ParsedPatternInfo::ParserState
131 int codePoint = peek(); in next()
148 if (state.peek() == u';') { in consumePattern()
151 if (state.peek() != -1) { in consumePattern()
158 if (state.peek() != -1) { in consumePattern()
185 if (state.peek() != u'*') { in consumePadding()
205 switch (state.peek()) { in consumeAffix()
258 if (state.peek() == -1) { in consumeLiteral()
262 } else if (state.peek() == u'\'') { in consumeLiteral()
264 while (state.peek() ! in consumeLiteral()
[all...]
/third_party/skia/third_party/externals/tint/tools/src/cmd/intrinsic-gen/lexer/
H A Dlexer.go48 switch l.peek(0) {
77 if l.peek(n) != '"' {
84 case l.peek(1) == '/':
94 case unicode.IsLetter(l.peek(0)) || l.peek(0) == '_':
96 case unicode.IsNumber(l.peek(0)):
129 // peek() returns the rune `i` runes ahead of the current position
130 func (l *lexer) peek(i int) rune {
144 if !p(l.peek(i)) {
/third_party/skia/src/sksl/
H A DSkSLDSLParser.cpp58 fParser->error(fParser->peek(), String("exceeded max parse depth")); in increase()
150 Token DSLParser::peek() { in peek() function in SkSL::DSLParser
254 switch (this->peek().fKind) { in declarations()
263 this->error(this->peek(), String("invalid token")); in declarations()
311 Token lookahead = this->peek(); in declaration()
321 lookahead = this->peek(); in declaration()
356 Token lookahead = this->peek(); in functionDeclarationEnd()
448 int line = this->peek().fLine; in globalVarDeclarationEnd()
487 int line = this->peek().fLine; in localVarDeclarationEnd()
524 Token nextToken = this->peek(); in varDeclarationsOrExpressionStatement()
[all...]
/third_party/icu/icu4c/source/i18n/
H A Dnumber_patternstring.cpp126 UChar32 ParsedPatternInfo::ParserState::peek() { in peek() function in ParsedPatternInfo::ParserState
147 int32_t codePoint = peek(); in next()
164 if (state.peek() == u';') { in consumePattern()
167 if (state.peek() != -1) { in consumePattern()
174 if (state.peek() != -1) { in consumePattern()
201 if (state.peek() != u'*') { in consumePadding()
221 switch (state.peek()) { in consumeAffix()
274 if (state.peek() == -1) { in consumeLiteral()
278 } else if (state.peek() == u'\'') { in consumeLiteral()
280 while (state.peek() ! in consumeLiteral()
[all...]
/third_party/node/deps/icu-small/source/i18n/
H A Dnumber_patternstring.cpp126 UChar32 ParsedPatternInfo::ParserState::peek() { in peek() function in ParsedPatternInfo::ParserState
147 int32_t codePoint = peek(); in next()
164 if (state.peek() == u';') { in consumePattern()
167 if (state.peek() != -1) { in consumePattern()
174 if (state.peek() != -1) { in consumePattern()
201 if (state.peek() != u'*') { in consumePadding()
221 switch (state.peek()) { in consumeAffix()
274 if (state.peek() == -1) { in consumeLiteral()
278 } else if (state.peek() == u'\'') { in consumeLiteral()
280 while (state.peek() ! in consumeLiteral()
[all...]
/third_party/node/deps/v8/src/parsing/
H A Dparser-base.h870 // Any further calls to Next or peek will return the illegal token. in CheckStackOverflow()
874 V8_INLINE Token::Value peek() { return scanner()->peek(); } in peek() function in v8::internal::ParseFunctionFlag::ParserBase
879 return (peek() == Token::SEMICOLON) ? peek_end_position() : end_position(); in PositionAfterSemicolon()
894 Token::Value next = scanner()->peek(); in Check()
912 Token::Value tok = peek(); in ExpectSemicolon()
936 bool peek_any_identifier() { return Token::IsAnyIdentifier(peek()); } in peek_any_identifier()
939 return peek() == Token::IDENTIFIER && in PeekContextualKeyword()
981 return peek() == Token::IN || in PeekInOrOf()
1229 if (!Token::IsMember(peek())) retur in ParseMemberExpressionContinuation()
[all...]

Completed in 27 milliseconds

12345678910