summary refs log tree commit diff
path: root/src/libsyntax/parse/mod.rs
diff options
context:
space:
mode:
authorJohn Clements <clements@racket-lang.org>2013-03-08 10:19:19 -0800
committerJohn Clements <clements@racket-lang.org>2013-03-29 10:53:00 -0700
commit556143c488f8b8b2ac25ac29efdf030017cba7d7 (patch)
tree1be3fdba249fec2adcd10d44426080c8a7c9cf59 /src/libsyntax/parse/mod.rs
parent2b07f0fb0018649588cda06bd33c33b71c5cac70 (diff)
downloadrust-556143c488f8b8b2ac25ac29efdf030017cba7d7.tar.gz
rust-556143c488f8b8b2ac25ac29efdf030017cba7d7.zip
commenting parser
Diffstat (limited to 'src/libsyntax/parse/mod.rs')
-rw-r--r--src/libsyntax/parse/mod.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs
index cdb67129c35..ba7a9624c18 100644
--- a/src/libsyntax/parse/mod.rs
+++ b/src/libsyntax/parse/mod.rs
@@ -45,10 +45,14 @@ pub mod classify;
 /// Reporting obsolete syntax
 pub mod obsolete;
 
+// info about a parsing session.
+// This structure and the reader both have
+// an interner associated with them. If they're
+// not the same, bad things can happen.
 pub struct ParseSess {
-    cm: @codemap::CodeMap,
+    cm: @codemap::CodeMap, // better be the same as the one in the reader!
     next_id: node_id,
-    span_diagnostic: @span_handler,
+    span_diagnostic: @span_handler, // better be the same as the one in the reader!
     interner: @ident_interner,
 }