/third_party/node/deps/v8/src/parsing/ |
H A D | parser-base.h | 870 // 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...] |
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/packaging/ |
H A D | _parser.py | 106 if tokenizer.check("END", peek=True): 112 if tokenizer.check("END", peek=True): 123 if tokenizer.check("END", peek=True): 163 if not tokenizer.check("LEFT_BRACKET", peek=True): 191 if tokenizer.check("IDENTIFIER", peek=True): 230 if tokenizer.check("VERSION_PREFIX_TRAIL", peek=True): 236 if tokenizer.check("VERSION_LOCAL_LABEL_TRAIL", peek=True): 283 if tokenizer.check("LEFT_PARENTHESIS", peek=True):
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/test/ |
H A D | testLockFreeQueue.cpp | 41 * - peek once 42 * - peek twice 119 ASSERT_EQ(q.peek(result1), false); in TEST_F() 124 ASSERT_EQ(q.peek(result1), true); in TEST_F() 129 q.peek(result1); in TEST_F() 135 q.peek(result1); in TEST_F() 136 q.peek(result2); in TEST_F()
|
/third_party/skia/third_party/externals/tint/src/reader/wgsl/ |
H A D | parser_impl.cc | 189 /// Constructor that starts with Source at the current peek position 192 : MultiTokenSource(parser, parser->peek().source().Begin()) {} in MultiTokenSource() 311 Token ParserImpl::peek(size_t idx) { in peek() function in tint::reader::wgsl::ParserImpl 318 return peek(idx).Is(tok); in peek_is() 334 auto p = peek(); in translation_unit() 445 auto t = peek(); in expect_global_decl() 891 return add_error(peek().source(), "invalid format", use); in expect_image_storage_type() 914 auto t = peek(); in expect_variable_ident_decl() 994 return add_error(peek(), "invalid type alias"); in type_alias() 1044 auto t = peek(); in type_decl() [all...] |
/third_party/mesa3d/src/amd/compiler/tests/ |
H A D | check_output.py | 139 def peek(self, num=1): member in StringStream 143 c = self.peek(1) 147 res = self.peek(num) 162 while self.peek(1) not in ['\n', '']: 169 while self.peek(1) in chars: 174 while self.peek() in string.digits: 242 elif output.peek() == '': 291 while pattern.peek() not in ['', ')']: 309 res.fail('expected whitespace in output, got %r' % (output.peek(1))) 311 outc = output.peek( [all...] |
/third_party/rust/crates/syn/src/ |
H A D | token.rs | 76 //! - [Peeking] — `input.peek(Token![...])` 86 //! [Peeking]: crate::parse::ParseBuffer::peek() 132 fn peek(cursor: Cursor) -> bool; in peek() functions 159 fn peek(cursor: Cursor) -> bool; in display() functions 168 fn peek_impl(cursor: Cursor, peek: fn(ParseStream) -> bool) -> bool { in peek_impl() 176 peek(&buffer) in peek_impl() 183 fn peek(cursor: Cursor) -> bool { in peek() functions 184 fn peek(input: ParseStream) -> bool { in peek() functions 187 peek_impl(cursor, peek) in peek() 215 fn peek(curso functions 238 fn peek(cursor: Cursor) -> bool { peek() functions 334 fn peek(cursor: Cursor) -> bool { display() functions 473 fn peek(cursor: Cursor) -> bool { peek() functions 600 fn peek(cursor: Cursor) -> bool { peek() functions 694 fn peek(cursor: Cursor) -> bool { peek() functions 705 fn peek(cursor: Cursor) -> bool { display() functions 716 fn peek(cursor: Cursor) -> bool { peek() functions 727 fn peek(cursor: Cursor) -> bool { display() functions [all...] |
H A D | meta.rs | 407 if input.peek(Ident::peek_any) { in parse_meta_path() 412 } else if input.peek(Lit) { in parse_meta_path() 417 while input.peek(Token![::]) { in parse_meta_path()
|
H A D | lookahead.rs | 11 /// An important advantage over [`ParseStream::peek`] is that here we 14 /// go ahead and use `ParseStream::peek` instead. 18 /// [`ParseStream::peek`]: crate::parse::ParseBuffer::peek 50 /// if lookahead.peek(Ident) { 52 /// } else if lookahead.peek(Lifetime) { 54 /// } else if lookahead.peek(Token![const]) { 78 peek: fn(Cursor) -> bool, in peek_impl() 81 if peek(lookahead.cursor) { in peek_impl() 94 /// Note that this method does not use turbofish syntax. Pass the peek typ 103 pub fn peek<T: Peek>(&self, token: T) -> bool { peek() functions [all...] |
H A D | data.rs | 170 let fields = if input.peek(token::Brace) { in parse() 172 } else if input.peek(token::Paren) { in parse() 177 let discriminant = if input.peek(Token![=]) { in parse() 251 initial = consume![!] || depth == 0 && input.peek(token::Brace); 253 } else if input.is_empty() || input.peek(Token![,]) { 308 let unnamed_field = cfg!(feature = "full") && input.peek(Token![_]); in parse_named() 318 && (input.peek(Token![struct]) in parse_named() 319 || input.peek(Token![union]) && input.peek2(token::Brace)) in parse_named()
|
/third_party/node/lib/internal/source_map/ |
H A D | source_map.js | 106 peek() { 258 if (stringCharIterator.peek() === ',') 261 while (stringCharIterator.peek() === ';') { 271 if (isSeparator(stringCharIterator.peek())) { 285 if (!isSeparator(stringCharIterator.peek())) {
|
/third_party/node/test/parallel/ |
H A D | test-priority-queue.js | 16 assert.strictEqual(queue.peek(), i); 71 assert.strictEqual(queue.peek().value, i); 72 queue.removeAt(queue.peek().position); 75 assert.strictEqual(queue.peek(), undefined);
|
/third_party/python/Tools/peg_generator/pegen/ |
H A D | parser.py | 183 tok = self._tokenizer.peek() 188 tok = self._tokenizer.peek() 195 tok = self._tokenizer.peek() 202 tok = self._tokenizer.peek() 209 tok = self._tokenizer.peek() 216 tok = self._tokenizer.peek() 223 tok = self._tokenizer.peek() 230 tok = self._tokenizer.peek()
|
/third_party/python/Modules/_io/ |
H A D | iobase.c | 535 PyObject *peek, *buffer, *result; in _io__IOBase_readline_impl() local 538 if (_PyObject_LookupAttr(self, &_Py_ID(peek), &peek) < 0) { in _io__IOBase_readline_impl() 544 Py_XDECREF(peek); in _io__IOBase_readline_impl() 552 if (peek != NULL) { in _io__IOBase_readline_impl() 553 PyObject *readahead = PyObject_CallOneArg(peek, _PyLong_GetOne()); in _io__IOBase_readline_impl() 564 "peek() should have returned a bytes object, " in _io__IOBase_readline_impl() 630 Py_XDECREF(peek); in _io__IOBase_readline_impl() 634 Py_XDECREF(peek); in _io__IOBase_readline_impl()
|
/kernel/linux/linux-6.6/tools/testing/kunit/ |
H A D | kunit_parser.py | 149 Provides a lazy peek()/pop() interface over an iterator of 175 def peek(self) -> str: member in LineStream 185 s = self.peek() 288 ktap_match = KTAP_START.match(lines.peek()) 289 tap_match = TAP_START.match(lines.peek()) 318 match = TEST_HEADER.match(lines.peek()) 344 match = TEST_PLAN.match(lines.peek()) 375 line = lines.peek() 405 line = lines.peek() 454 while lines and not any(re.match(lines.peek()) [all...] |
/third_party/node/lib/internal/cluster/ |
H A D | round_robin_handle.js | 13 const { append, init, isEmpty, peek, remove } = require('internal/linkedlist'); 90 const handle = peek(this.handles); 121 const handle = peek(this.handles);
|
/third_party/node/deps/v8/tools/wasm-compilation-hints/ |
H A D | wasm.py | 16 bs = fin.peek(1)[:1] 27 bs = fin.peek(4)[:4] 42 bs = fin.peek(n)[:n]
|
/third_party/rust/crates/cxx/gen/lib/src/syntax/ |
H A D | cfg.rs | 39 if input.peek(token::Paren) { in parse_single() 55 } else if lookahead.peek(Token![=]) { in parse_single() 59 } else if lookahead.peek(Token![,]) || input.is_empty() { in parse_single()
|
/third_party/rust/crates/cxx/syntax/ |
H A D | cfg.rs | 39 if input.peek(token::Paren) { in parse_single() 55 } else if lookahead.peek(Token![=]) { in parse_single() 59 } else if lookahead.peek(Token![,]) || input.is_empty() { in parse_single()
|
/third_party/rust/crates/cxx/gen/cmd/src/syntax/ |
H A D | cfg.rs | 39 if input.peek(token::Paren) { in parse_single() 55 } else if lookahead.peek(Token![=]) { in parse_single() 59 } else if lookahead.peek(Token![,]) || input.is_empty() { in parse_single()
|
/third_party/rust/crates/cxx/macro/src/syntax/ |
H A D | cfg.rs | 39 if input.peek(token::Paren) { in parse_single() 55 } else if lookahead.peek(Token![=]) { in parse_single() 59 } else if lookahead.peek(Token![,]) || input.is_empty() { in parse_single()
|
/third_party/rust/crates/cxx/gen/build/src/syntax/ |
H A D | cfg.rs | 39 if input.peek(token::Paren) { in parse_single() 55 } else if lookahead.peek(Token![=]) { in parse_single() 59 } else if lookahead.peek(Token![,]) || input.is_empty() { in parse_single()
|
/third_party/rust/crates/proc-macro-error/proc-macro-error-attr/src/ |
H A D | parse.rs | 30 let shebang = match input.peek() { in parse_next_attr() 35 let group = match input.peek() { in parse_next_attr() 62 match input.peek() { in parse_signature()
|
/third_party/node/lib/internal/ |
H A D | linkedlist.js | 10 function peek(list) { function 51 peek,
|
/third_party/skia/third_party/externals/oboe/samples/parselib/src/main/cpp/stream/ |
H A D | MemInputStream.cpp | 27 peek(buff, numBytes);
in read() 32 int32_t MemInputStream::peek(void *buff, int32_t numBytes) {
in peek() function in parselib::MemInputStream
|
/third_party/gptfdisk/ |
H A D | support.cc | 163 if (((inString.peek() < '0') || (inString.peek() > '9')) && (inString.peek() != -1)) in IeeeToInt() 171 while (foundAt > (suffixes.length() - 1) && inString.peek() != -1) { in IeeeToInt()
|