Skip to main content

doc_for

Function doc_for 

Source
pub fn doc_for(kind: &TokenType) -> Option<&'static ConstructDoc>
Expand description

The lesson for a statement keyword, when the token deserves one.

Wildcard-free: a new TokenType variant does not compile until someone decides whether it teaches (a lesson arm) or not (the grouped None arm).