Skip to content

Commit a66f185

Browse files
committed
---
yaml --- r: 144839 b: refs/heads/try2 c: e681e78 h: refs/heads/master i: 144837: 5165669 144835: 22e06fc 144831: 8c71ad8 v: v3
1 parent a626ab7 commit a66f185

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 985a92ec123ff05a361bde6af4602282e3851d77
8+
refs/heads/try2: e681e7843e6da4348648dcbdf11a633828c1b1a9
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

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