Skip to content

Commit ded61a1

Browse files
committed
---
yaml --- r: 79502 b: refs/heads/snap-stage3 c: e681e78 h: refs/heads/master v: v3
1 parent 3a759a2 commit ded61a1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 124eb2119c78651cfaaa7a046a101fa2e20f83ca
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 985a92ec123ff05a361bde6af4602282e3851d77
4+
refs/heads/snap-stage3: e681e7843e6da4348648dcbdf11a633828c1b1a9
55
refs/heads/try: ac820906c0e53eab79a98ee64f7231f57c3887b4
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libsyntax/util/parser_testing.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ pub fn string_to_tts_and_sess (source_str : @str) -> (~[ast::token_tree],@mut Pa
2222
(filemap_to_tts(ps,string_to_filemap(ps,source_str,@"bogofile")),ps)
2323
}
2424

25+
// map a string to tts, using a made-up filename:
26+
pub fn string_to_tts(source_str : @str) -> ~[ast::token_tree] {
27+
let (tts,_) = string_to_tts_and_sess(source_str);
28+
tts
29+
}
30+
2531
pub fn string_to_parser_and_sess(source_str: @str) -> (Parser,@mut ParseSess) {
2632
let ps = new_parse_sess(None);
2733
(new_parser_from_source_str(ps,~[],@"bogofile",source_str),ps)

0 commit comments

Comments
 (0)