Lines Matching refs:tt
484 ($($tt:tt)*) => {
496 // Special case rule for a single tt, for performance.
497 ($tt:tt) => {{
499 $crate::quote_token!{$tt _s}
509 ($tt1:tt $tt2:tt) => {{
517 ($($tt:tt)*) => {{
519 $crate::quote_each_token!{_s $($tt)*}
623 ($span:expr=> $($tt:tt)*) => {
636 // Special case rule for a single tt, for performance.
637 ($span:expr=> $tt:tt) => {{
640 $crate::quote_token_spanned!{$tt _s _span}
651 ($span:expr=> $tt1:tt $tt2:tt) => {{
660 ($span:expr=> $($tt:tt)*) => {{
663 $crate::quote_each_token_spanned!{_s _span $($tt)*}
677 ($call:ident! $extra:tt $($tts:tt)*) => {
688 ($call:ident! $extra:tt ($($b1:tt)*) ($($curr:tt)*)) => {
698 ($call:ident! $extra:tt $b1:tt ( $($inner:tt)* )) => {
702 ($call:ident! $extra:tt $b1:tt [ $($inner:tt)* ]) => {
706 ($call:ident! $extra:tt $b1:tt { $($inner:tt)* }) => {
710 ($call:ident!($($extra:tt)*) # $var:ident) => {
714 ($call:ident! $extra:tt $b1:tt $curr:tt) => {};
739 // The obvious way to write this macro is as a tt muncher. This implementation
742 // - With a tt muncher it's easy to hit Rust's built-in recursion_limit, which
745 // - Compile times for a tt muncher are quadratic relative to the length of
748 // of this implementation are higher than that of a tt muncher, so it is
749 // somewhat slower than a tt muncher if there are many invocations with
788 // quote_token_with_context for each original tt, with three tts of context on
791 // the first or last tt in the middle.
793 // The middle tt (surrounded by parentheses) is the tt being processed.
810 ($tokens:ident $($tts:tt)*) => {
827 ($tokens:ident $span:ident $($tts:tt)*) => {
845 ($($b3:tt)*) ($($b2:tt)*) ($($b1:tt)*)
846 ($($curr:tt)*)
847 ($($a1:tt)*) ($($a2:tt)*) ($($a3:tt)*)
860 ($($b3:tt)*) ($($b2:tt)*) ($($b1:tt)*)
861 ($($curr:tt)*)
862 ($($a1:tt)*) ($($a2:tt)*) ($($a3:tt)*)
876 ($tokens:ident $b3:tt $b2:tt $b1:tt @ $a1:tt $a2:tt $a3:tt) => {};
879 ($tokens:ident $b3:tt $b2:tt $b1:tt (#) ( $($inner:tt)* ) * $a3:tt) => {{
896 ($tokens:ident $b3:tt $b2:tt # (( $($inner:tt)* )) * $a2:tt $a3:tt) => {};
898 ($tokens:ident $b3:tt # ( $($inner:tt)* ) (*) $a1:tt $a2:tt $a3:tt) => {};
901 ($tokens:ident $b3:tt $b2:tt $b1:tt (#) ( $($inner:tt)* ) $sep:tt *) => {{
917 ($tokens:ident $b3:tt $b2:tt # (( $($inner:tt)* )) $sep:tt * $a3:tt) => {};
919 ($tokens:ident $b3:tt # ( $($inner:tt)* ) ($sep:tt) * $a2:tt $a3:tt) => {};
922 ($tokens:ident # ( $($inner:tt)* ) * (*) $a1:tt $a2:tt $a3:tt) => {
927 ($tokens:ident # ( $($inner:tt)* ) $sep:tt (*) $a1:tt $a2:tt $a3:tt) => {};
930 ($tokens:ident $b3:tt $b2:tt $b1:tt (#) $var:ident $a2:tt $a3:tt) => {
934 ($tokens:ident $b3:tt $b2:tt # ($var:ident) $a1:tt $a2:tt $a3:tt) => {};
937 ($tokens:ident $b3:tt $b2:tt $b1:tt ($curr:tt) $a1:tt $a2:tt $a3:tt) => {
947 ($tokens:ident $span:ident $b3:tt $b2:tt $b1:tt @ $a1:tt $a2:tt $a3:tt) => {};
949 ($tokens:ident $span:ident $b3:tt $b2:tt $b1:tt (#) ( $($inner:tt)* ) * $a3:tt) => {{
959 ($tokens:ident $span:ident $b3:tt $b2:tt # (( $($inner:tt)* )) * $a2:tt $a3:tt) => {};
960 ($tokens:ident $span:ident $b3:tt # ( $($inner:tt)* ) (*) $a1:tt $a2:tt $a3:tt) => {};
962 ($tokens:ident $span:ident $b3:tt $b2:tt $b1:tt (#) ( $($inner:tt)* ) $sep:tt *) => {{
977 ($tokens:ident $span:ident $b3:tt $b2:tt # (( $($inner:tt)* )) $sep:tt * $a3:tt) => {};
978 ($tokens:ident $span:ident $b3:tt # ( $($inner:tt)* ) ($sep:tt) * $a2:tt $a3:tt) => {};
979 ($tokens:ident $span:ident # ( $($inner:tt)* ) * (*) $a1:tt $a2:tt $a3:tt) => {
983 ($tokens:ident $span:ident # ( $($inner:tt)* ) $sep:tt (*) $a1:tt $a2:tt $a3:tt) => {};
985 ($tokens:ident $span:ident $b3:tt $b2:tt $b1:tt (#) $var:ident $a2:tt $a3:tt) => {
988 ($tokens:ident $span:ident $b3:tt $b2:tt # ($var:ident) $a1:tt $a2:tt $a3:tt) => {};
990 ($tokens:ident $span:ident $b3:tt $b2:tt $b1:tt ($curr:tt) $a1:tt $a2:tt $a3:tt) => {
1013 (( $($inner:tt)* ) $tokens:ident) => {
1021 ([ $($inner:tt)* ] $tokens:ident) => {
1029 ({ $($inner:tt)* } $tokens:ident) => {
1217 ($other:tt $tokens:ident) => {
1234 (( $($inner:tt)* ) $tokens:ident $span:ident) => {
1243 ([ $($inner:tt)* ] $tokens:ident $span:ident) => {
1252 ({ $($inner:tt)* } $tokens:ident $span:ident) => {
1441 ($other:tt $tokens:ident $span:ident) => {