mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 03:38:29 +00:00
make StringReader fields private
This commit is contained in:
parent
546cb21f58
commit
555309d933
@ -43,16 +43,16 @@ pub struct UnmatchedBrace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub struct StringReader<'a> {
|
pub struct StringReader<'a> {
|
||||||
pub sess: &'a ParseSess,
|
crate sess: &'a ParseSess,
|
||||||
/// The absolute offset within the source_map of the next character to read
|
/// The absolute offset within the source_map of the next character to read
|
||||||
pub next_pos: BytePos,
|
crate next_pos: BytePos,
|
||||||
/// The absolute offset within the source_map of the current character
|
/// The absolute offset within the source_map of the current character
|
||||||
pub pos: BytePos,
|
crate pos: BytePos,
|
||||||
/// The current character (which has been read from self.pos)
|
/// The current character (which has been read from self.pos)
|
||||||
pub ch: Option<char>,
|
crate ch: Option<char>,
|
||||||
pub source_file: Lrc<syntax_pos::SourceFile>,
|
crate source_file: Lrc<syntax_pos::SourceFile>,
|
||||||
/// Stop reading src at this index.
|
/// Stop reading src at this index.
|
||||||
pub end_src_index: usize,
|
crate end_src_index: usize,
|
||||||
// cached:
|
// cached:
|
||||||
peek_tok: token::Token,
|
peek_tok: token::Token,
|
||||||
peek_span: Span,
|
peek_span: Span,
|
||||||
|
Loading…
Reference in New Issue
Block a user