Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
make StringReader fields private
  • Loading branch information
matklad committed Apr 3, 2019
1 parent 546cb21 commit 555309d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/libsyntax/parse/lexer/mod.rs
Expand Up @@ -43,16 +43,16 @@ pub struct UnmatchedBrace {
}

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
pub next_pos: BytePos,
crate next_pos: BytePos,
/// 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)
pub ch: Option<char>,
pub source_file: Lrc<syntax_pos::SourceFile>,
crate ch: Option<char>,
crate source_file: Lrc<syntax_pos::SourceFile>,
/// Stop reading src at this index.
pub end_src_index: usize,
crate end_src_index: usize,
// cached:
peek_tok: token::Token,
peek_span: Span,
Expand Down

0 comments on commit 555309d

Please sign in to comment.