Module syntax::parse::lexer::comments[][src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Re-exports

pub use self::CommentStyle::*;
use ast;
use codemap::CodeMap;
use syntax_pos::BytePos;
use syntax_pos::CharPos;
use syntax_pos::Pos;
use syntax_pos::FileName;
use parse::lexer::is_block_doc_comment;
use parse::lexer::is_pattern_whitespace;
use parse::lexer;
use parse::lexer::ParseSess;
use parse::lexer::StringReader;
use parse::lexer::TokenAndSpan;
use print::pprust;
use str::char_at;
use std::io::Read;
use std::usize;

Structs

Comment [
Experimental
]
Literal [
Experimental
]

Enums

CommentStyle [
Experimental
]

Functions

all_whitespace [
Experimental
]

Returns None if the first col chars of s contain a non-whitespace char. Otherwise returns Some(k) where k is first char offset after that leading whitespace. Note k may be outside bounds of s.

consume_comment [
Experimental
]
consume_whitespace_counting_blank_lines [
Experimental
]
doc_comment_style [
Experimental
]
gather_comments_and_literals [
Experimental
]
is_doc_comment [
Experimental
]
push_blank_line_comment [
Experimental
]
read_block_comment [
Experimental
]
read_line_comments [
Experimental
]
read_shebang_comment [
Experimental
]
strip_doc_comment_decoration [
Experimental
]
trim_whitespace_prefix_and_push_line [
Experimental
]