about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2012-11-20 16:07:57 -0800
committerGraydon Hoare <graydon@mozilla.com>2012-11-20 16:08:05 -0800
commit497a8b54b5b3f9daf0ec735d443c443ac29afeab (patch)
treefbb06ef2831317fc195467bd6fb45fa357d82d67 /src/libsyntax/parse
parentba01cd7fb0b6efe22e23bcfdb763260cd4c2ea32 (diff)
downloadrust-497a8b54b5b3f9daf0ec735d443c443ac29afeab.tar.gz
rust-497a8b54b5b3f9daf0ec735d443c443ac29afeab.zip
syntax: switch tt quoter to emit ~[tt], not tt.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 0df61a7f044..925934d165f 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -1321,6 +1321,14 @@ impl Parser {
         };
     }
 
+    fn parse_all_token_trees() -> ~[token_tree] {
+        let tts = DVec();
+        while self.token != token::EOF {
+            tts.push(self.parse_token_tree());
+        }
+        tts.get()
+    }
+
     fn parse_matchers() -> ~[matcher] {
         // unification of matchers and token_trees would vastly improve
         // the interpolation of matchers