diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-11-15 14:34:23 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-11-15 14:43:31 -0800 |
| commit | bcccf333ab728539bf63ed773e6182f9da33683e (patch) | |
| tree | 4486bb66b7580a6884b6e48aafc48f8642b83a43 /src/libsyntax/parse | |
| parent | 4a0f4f5e311b7443b29ea31ad0e68e6b4aa63736 (diff) | |
| download | rust-bcccf333ab728539bf63ed773e6182f9da33683e.tar.gz rust-bcccf333ab728539bf63ed773e6182f9da33683e.zip | |
Add some comments to codemap and lexer
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/lexer.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsyntax/parse/lexer.rs b/src/libsyntax/parse/lexer.rs index 459935def67..1eadaec1fcd 100644 --- a/src/libsyntax/parse/lexer.rs +++ b/src/libsyntax/parse/lexer.rs @@ -21,9 +21,13 @@ trait reader { type string_reader = @{ span_diagnostic: span_handler, src: @~str, + // The absolute offset within the codemap of the next character to read mut pos: FilePos, + // The absolute offset within the codemap of the last character to be read (curr) mut last_pos: FilePos, + // The column of the next character to read mut col: CharPos, + // The last character to be read mut curr: char, filemap: @codemap::FileMap, interner: @token::ident_interner, |
