ModulesΒ§
- comment π
- Modified from
rustc_ast::util::comments
.
StructsΒ§
FunctionsΒ§
- all_
whitespace π - Returns
None
if the firstcol
chars ofs
contain a non-whitespace char. Otherwise returnsSome(k)
wherek
is first char offset after that leading whitespace. Note thatk
may be outside bounds ofs
. - gather_
comments π - line_
begin_ πpos - Returns the
BytePos
of the beginning of the current line. - split_
block_ πcomment_ into_ lines - trim_
whitespace_ πprefix