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