Skip to content

Commit 55c6529

Browse files
committed
---
yaml --- r: 79371 b: refs/heads/try c: 91ff281 h: refs/heads/master i: 79369: 29777c1 79367: ebda7dc v: v3
1 parent fd7f259 commit 55c6529

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 3e6de6b7da8ee88bf84b0e217900051334be08da
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 60fba4d7d677ec098e6a43014132fe99f7547363
5-
refs/heads/try: a2384b65e0eff63675a301ca2e340557de487c8c
5+
refs/heads/try: 91ff28142e558fe6c9f2a9a137fa579a3faf1a94
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/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)