-
Notifications
You must be signed in to change notification settings - Fork 0
Example
mjehrhart edited this page Apr 5, 2022
·
3 revisions
Passed in the text below (via file path -> lexical_scanner::lexer(file_path)
use std::ops::Deref;
#[allow(
dead_code,
clippy::upper_case_acronyms,
clippy::enum_variant_names,
non_camel_case_types
)]
impl Deref for Token {
type Target = Token;
fn deref(&self) -> &Self::Target {
&self
}
}
Results
- KW_Use
- WhiteSpace
- Word("std")
- PathSep
- Word("ops")
- PathSep
- Word("Deref")
- Semi
- Newline
- Newline
- Pound
- BracketLeft
- Word("allow")
- ParenLeft
- Newline
- WhiteSpace
- WhiteSpace
- WhiteSpace
- WhiteSpace
- Word("dead_code")
- Comma
- Newline
- WhiteSpace
- WhiteSpace
- WhiteSpace
- WhiteSpace
- Word("clippy")
- PathSep
- Word("upper_case_acronyms")
- Comma
- Newline
- WhiteSpace
- WhiteSpace
- WhiteSpace
- WhiteSpace
- Word("clippy")
- PathSep
- Word("enum_variant_names")
- Comma
- Newline
- WhiteSpace
- WhiteSpace
- WhiteSpace
- WhiteSpace
- Word("non_camel_case_types")
- Newline
- ParenRight
- BracketRight
- Newline
- Newline
- KW_Impl
- WhiteSpace
- Word("Deref")
- WhiteSpace
- KW_For
- WhiteSpace
- Word("Token")
- WhiteSpace
- CurlyBraceLeft
- Newline
- WhiteSpace
- WhiteSpace
- WhiteSpace
- WhiteSpace
- KW_Type
- WhiteSpace
- Word("Target")
- WhiteSpace
- Eq
- WhiteSpace
- Word("Token")
- Semi
- Newline
- Newline
- WhiteSpace
- WhiteSpace
- WhiteSpace
- WhiteSpace
- KW_Fn
- WhiteSpace
- Word("deref")
- ParenLeft
- And
- KW_Self
- ParenRight
- WhiteSpace
- RArrow
- WhiteSpace
- And
- KW_SELF
- PathSep
- Word("Target")
- WhiteSpace
- CurlyBraceLeft
- Newline
- WhiteSpace
- WhiteSpace
- WhiteSpace
- WhiteSpace
- WhiteSpace
- WhiteSpace
- WhiteSpace
- WhiteSpace
- And
- KW_Self
- Newline
- WhiteSpace
- WhiteSpace
- WhiteSpace
- WhiteSpace
- CurlyBraceRight
- Newline
- CurlyBraceRight
- Newline