diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-03-27 15:39:48 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-03-31 15:47:36 -0700 |
| commit | 3c76f4ac8ddca0fb0809b00e3e448f57cf1931b7 (patch) | |
| tree | c00e4a730162f2b18c90971183ae28a746bbf4f8 /src/libsyntax/parse/lexer.rs | |
| parent | c034d0c854b9e80dc5d20ebe152eee8ce96ed544 (diff) | |
| download | rust-3c76f4ac8ddca0fb0809b00e3e448f57cf1931b7.tar.gz rust-3c76f4ac8ddca0fb0809b00e3e448f57cf1931b7.zip | |
syntax: Switch field privacy as necessary
Diffstat (limited to 'src/libsyntax/parse/lexer.rs')
| -rw-r--r-- | src/libsyntax/parse/lexer.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/libsyntax/parse/lexer.rs b/src/libsyntax/parse/lexer.rs index c18571deaf5..23d7cc0af97 100644 --- a/src/libsyntax/parse/lexer.rs +++ b/src/libsyntax/parse/lexer.rs @@ -34,24 +34,24 @@ pub trait Reader { #[deriving(Clone, Eq, Show)] pub struct TokenAndSpan { - tok: token::Token, - sp: Span, + pub tok: token::Token, + pub sp: Span, } pub struct StringReader<'a> { - span_diagnostic: &'a SpanHandler, + pub span_diagnostic: &'a SpanHandler, // The absolute offset within the codemap of the next character to read - pos: BytePos, + pub pos: BytePos, // The absolute offset within the codemap of the last character read(curr) - last_pos: BytePos, + pub last_pos: BytePos, // The column of the next character to read - col: CharPos, + pub col: CharPos, // The last character to be read - curr: Option<char>, - filemap: Rc<codemap::FileMap>, + pub curr: Option<char>, + pub filemap: Rc<codemap::FileMap>, /* cached: */ - peek_tok: token::Token, - peek_span: Span, + pub peek_tok: token::Token, + pub peek_span: Span, } impl<'a> StringReader<'a> { |
