pub struct MissedTokens {
pub element: ElementId,
pub tokens: Vec<&'static str>,
pub text: String,
}Expand description
PsiBuilderImpl.prepareLightTree’s LOG.error("Tokens [..] were not inserted into the tree. .."): the tree
leaves those tokens out. IntelliJ’s DefaultLogger (what ktfmt and ktlint run with) prints Self::log to
stderr and throws AssertionError, which their CLIs don’t catch. Both expand every chameleon before they
look for error elements, so it wins over a parse error anywhere in the file (research/24, finding 4).
Fields§
§element: ElementIdThe builder’s root: the file, or the expanded chameleon.
tokens: Vec<&'static str>The debug_names of the tokens from the builder’s position to its end.
text: StringThe builder’s text (the error’s missedTokensFragment.txt attachment).
Implementations§
Trait Implementations§
Source§impl Clone for MissedTokens
impl Clone for MissedTokens
Source§impl Debug for MissedTokens
impl Debug for MissedTokens
impl Eq for MissedTokens
Source§impl PartialEq for MissedTokens
impl PartialEq for MissedTokens
impl StructuralPartialEq for MissedTokens
Auto Trait Implementations§
impl Freeze for MissedTokens
impl RefUnwindSafe for MissedTokens
impl Send for MissedTokens
impl Sync for MissedTokens
impl Unpin for MissedTokens
impl UnsafeUnpin for MissedTokens
impl UnwindSafe for MissedTokens
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more