Lines Matching defs:crate
1 use crate::detection::inside_proc_macro;
3 use crate::location::LineColumn;
4 use crate::{fallback, Delimiter, Punct, Spacing, TokenTree};
13 pub(crate) enum TokenStream {
23 pub(crate) struct DeferredTokenStream {
28 pub(crate) enum LexError {
261 pub(crate) fn span(&self) -> Span {
308 pub(crate) enum TokenTreeIter {
336 proc_macro::TokenTree::Group(tt) => crate::Group::_new(Group::Compiler(tt)).into(),
343 o.set_span(crate::Span::_new(Span::Compiler(tt.span())));
346 proc_macro::TokenTree::Ident(s) => crate::Ident::_new(Ident::Compiler(s)).into(),
347 proc_macro::TokenTree::Literal(l) => crate::Literal::_new(Literal::Compiler(l)).into(),
361 pub(crate) enum SourceFile {
399 pub(crate) enum Span {
516 impl From<proc_macro::Span> for crate::Span {
518 crate::Span::_new(Span::Compiler(proc_span))
537 pub(crate) fn debug_span_field_if_nontrivial(debug: &mut fmt::DebugStruct, span: Span) {
547 pub(crate) enum Group {
652 pub(crate) enum Ident {
749 pub(crate) enum Literal {