Home
last modified time | relevance | path

Searched refs:lookahead (Results 1 – 25 of 29) sorted by relevance

12

/linux/rust/syn/
H A Dderive.rs87 let lookahead = input.lookahead1(); in parse() localVariable
88 if lookahead.peek(Token![struct]) { in parse()
107 } else if lookahead.peek(Token![enum]) { in parse()
126 } else if lookahead.peek(Token![union]) { in parse()
145 Err(lookahead.error()) in parse()
153 let mut lookahead = input.lookahead1(); localVariable
155 if lookahead.peek(Token![where]) {
157 lookahead = input.lookahead1();
160 if where_clause.is_none() && lookahead.peek(token::Paren) {
163 lookahead = input.lookahead1();
[all …]
H A Ditem.rs956 let lookahead = ahead.lookahead1(); in parse_rest_of_item() localVariable
958 let mut item = if lookahead.peek(Token![fn]) || peek_signature(&ahead, allow_safe) { in parse_rest_of_item()
967 } else if lookahead.peek(Token![extern]) { in parse_rest_of_item()
969 let lookahead = ahead.lookahead1(); in parse_rest_of_item() localVariable
970 if lookahead.peek(Token![crate]) { in parse_rest_of_item()
972 } else if lookahead.peek(token::Brace) { in parse_rest_of_item()
974 } else if lookahead.peek(LitStr) { in parse_rest_of_item()
976 let lookahead = ahead.lookahead1(); in parse_rest_of_item() localVariable
977 if lookahead.peek(token::Brace) { in parse_rest_of_item()
980 Err(lookahead.error()) in parse_rest_of_item()
[all …]
H A Dpat.rs291 let lookahead = input.lookahead1(); in parse_single() localVariable
292 if lookahead.peek(Ident) in parse_single()
299 || lookahead.peek(Token![::]) in parse_single()
300 || lookahead.peek(Token![<]) in parse_single()
306 } else if lookahead.peek(Token![_]) { in parse_single()
310 } else if input.peek(Token![-]) || lookahead.peek(Lit) || lookahead.peek(Token![const]) in parse_single()
313 } else if lookahead.peek(Token![ref]) in parse_single()
314 || lookahead.peek(Token![mut]) in parse_single()
319 } else if lookahead.peek(Token![&]) { in parse_single()
321 } else if lookahead.peek(token::Paren) { in parse_single()
[all …]
H A Dty.rs363 let mut lookahead = input.lookahead1(); in ambig_ty() localVariable
364 if lookahead.peek(Token![for]) { in ambig_ty()
366 lookahead = input.lookahead1(); in ambig_ty()
367 if !lookahead.peek(Ident) in ambig_ty()
368 && !lookahead.peek(Token![fn]) in ambig_ty()
369 && !lookahead.peek(Token![unsafe]) in ambig_ty()
370 && !lookahead.peek(Token![extern]) in ambig_ty()
371 && !lookahead.peek(Token![super]) in ambig_ty()
372 && !lookahead.peek(Token![self]) in ambig_ty()
373 && !lookahead.peek(Token![Self]) in ambig_ty()
[all …]
H A Dlookahead.rs5 use crate::sealed::lookahead::Sealed;
79 lookahead: &Lookahead1, in peek_impl()
83 if peek(lookahead.cursor) { in peek_impl()
86 lookahead.comparisons.borrow_mut().push(display()); in peek_impl()
H A Dgenerics.rs555 let lookahead = input.lookahead1(); in parse() localVariable
556 if lookahead.peek(Lifetime) { in parse()
561 } else if lookahead.peek(Ident) { in parse()
566 } else if lookahead.peek(Token![const]) { in parse()
581 return Err(lookahead.error()); in parse()
607 let lookahead = input.lookahead1(); in parse() localVariable
608 if lookahead.peek(Ident) { in parse()
613 } else if lookahead.peek(Lifetime) { in parse()
618 } else if lookahead.peek(Token![const]) { in parse()
624 Err(lookahead.error()) in parse()
[all …]
H A Dop.rs155 let lookahead = input.lookahead1(); in parse() localVariable
156 if lookahead.peek(Token![*]) { in parse()
158 } else if lookahead.peek(Token![!]) { in parse()
160 } else if lookahead.peek(Token![-]) { in parse()
163 Err(lookahead.error()) in parse()
H A Dext.rs9 use crate::sealed::lookahead;
120 impl lookahead::Sealed for private::PeekFn {}
H A Dident.rs4 use crate::lookahead;
12 pub fn Ident(marker: lookahead::TokenMarker) -> Ident {
H A Dlifetime.rs4 use crate::lookahead;
120 pub fn Lifetime(marker: lookahead::TokenMarker) -> Lifetime {
H A Dsealed.rs4 pub(crate) mod lookahead { module
H A Dparse.rs189 use crate::lookahead;
207 pub use crate::lookahead::{End, Lookahead1, Peek};
839 lookahead::new(self.scope, self.cursor()) in lookahead1()
H A Dexpr.rs2254 let lookahead = input.lookahead1(); in parse() localVariable
2255 if lookahead.peek(Token![if]) { in parse()
2258 } else if lookahead.peek(token::Brace) { in parse()
2269 return Err(lookahead.error()); in parse()
2925 let lookahead = input.lookahead1(); in parse() localVariable
2926 let dot_dot = lookahead.peek(Token![..]); in parse()
2927 let dot_dot_eq = dot_dot && lookahead.peek(Token![..=]); in parse()
2934 Err(lookahead.error()) in parse()
2942 let lookahead = input.lookahead1(); in parse_obsolete() localVariable
2943 let dot_dot = lookahead.peek(Token![..]); in parse_obsolete()
[all …]
H A Dlit.rs4 use crate::lookahead;
808 pub fn $ty(marker: lookahead::TokenMarker) -> $ty {
827 pub fn LitBool(marker: lookahead::TokenMarker) -> LitBool {
848 pub fn Lit(marker: lookahead::TokenMarker) -> Lit {
H A Dpath.rs412 let lookahead = input.lookahead1(); in const_argument() localVariable
446 Err(lookahead.error()) in const_argument()
/linux/drivers/tty/
H A Dtty_buffer.c108 p->lookahead = 0; in tty_buffer_reset()
238 buf->head->lookahead = buf->head->read; in tty_buffer_flush()
399 head->lookahead = max(head->lookahead, head->read); in lookahead_bufs()
415 count = smp_load_acquire(&head->commit) - head->lookahead; in lookahead_bufs()
424 p = char_buf_ptr(head, head->lookahead); in lookahead_bufs()
426 f = flag_buf_ptr(head, head->lookahead); in lookahead_bufs()
431 head->lookahead += count; in lookahead_bufs()
/linux/include/linux/
H A Dtty_buffer.h18 unsigned int lookahead; /* Lazy update on recv, can become less than "read" */ member
/linux/drivers/net/wireless/ath/ath10k/
H A Dsdio.c931 u32 *lookahead) in ath10k_sdio_mbox_read_int_status() argument
942 *lookahead = 0; in ath10k_sdio_mbox_read_int_status()
975 *lookahead = 0; in ath10k_sdio_mbox_read_int_status()
985 *lookahead = le32_to_cpu( in ath10k_sdio_mbox_read_int_status()
987 if (!*lookahead) in ath10k_sdio_mbox_read_int_status()
1000 u32 lookahead; in ath10k_sdio_mbox_proc_pending_irqs() local
1011 &lookahead); in ath10k_sdio_mbox_proc_pending_irqs()
1017 if (!host_int_status && !lookahead) { in ath10k_sdio_mbox_proc_pending_irqs()
1023 if (lookahead) { in ath10k_sdio_mbox_proc_pending_irqs()
1026 lookahead); in ath10k_sdio_mbox_proc_pending_irqs()
[all …]
H A Dhtc.h235 u8 lookahead[4]; member
243 u8 lookahead[4]; member
H A Dhtc.c308 memcpy((u8 *)next_lookaheads, report->lookahead, 4); in ath10k_htc_process_lookahead()
338 report->lookahead, 4); in ath10k_htc_process_lookahead_bundle()
/linux/arch/sh/include/asm/
H A Dprocessor_32.h82 unsigned char lookahead; member
/linux/fs/erofs/
H A Dzmap.c97 unsigned long lcn, bool lookahead) in z_erofs_load_compact_lcluster() argument
164 if (lookahead) in z_erofs_load_compact_lcluster()
237 unsigned int lcn, bool lookahead) in z_erofs_load_lcluster_from_disk() argument
243 err = z_erofs_load_compact_lcluster(m, lcn, lookahead); in z_erofs_load_lcluster_from_disk()
/linux/arch/x86/include/asm/fpu/
H A Dtypes.h93 u8 lookahead; member
/linux/tools/perf/util/intel-pt-decoder/
H A Dintel-pt-decoder.h279 int (*lookahead)(void *data, intel_pt_lookahead_cb_t cb, void *cb_data); member
/linux/lib/zlib_deflate/
H A Ddefutil.h136 uInt lookahead; /* number of valid bytes ahead in window */ member

12