about summary refs log tree commit diff
path: root/src/libsyntax/util/parser_testing.rs
diff options
context:
space:
mode:
authorJohn Clements <clements@racket-lang.org>2013-06-04 14:56:33 -0700
committerJohn Clements <clements@racket-lang.org>2013-06-05 12:01:40 -0700
commit5a158f1d19d93af4223fea2da49209e73a3ed002 (patch)
treef79fda064ff81ff3c3f5b7f7d69b9c1cf8fbad5b /src/libsyntax/util/parser_testing.rs
parentecdb6e472218ea6f542e4b95e1e3ce48a7e78056 (diff)
downloadrust-5a158f1d19d93af4223fea2da49209e73a3ed002.tar.gz
rust-5a158f1d19d93af4223fea2da49209e73a3ed002.zip
add hygiene support functions
Diffstat (limited to 'src/libsyntax/util/parser_testing.rs')
-rw-r--r--src/libsyntax/util/parser_testing.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/util/parser_testing.rs b/src/libsyntax/util/parser_testing.rs
index 2b74ef7fbea..c5528069926 100644
--- a/src/libsyntax/util/parser_testing.rs
+++ b/src/libsyntax/util/parser_testing.rs
@@ -54,7 +54,8 @@ pub fn string_to_item_and_sess (source_str : @~str) -> (Option<@ast::item>,@mut
     (p.parse_item(~[]),ps)
 }
 
-pub fn string_to_stmt (source_str : @~str) -> @ast::stmt {
+// parse a string, return a stmt
+pub fn string_to_stmt(source_str : @~str) -> @ast::stmt {
     string_to_parser(source_str).parse_stmt(~[])
 }