diff options
| author | John Clements <clements@racket-lang.org> | 2013-07-12 18:35:05 -0700 |
|---|---|---|
| committer | John Clements <clements@racket-lang.org> | 2013-09-06 13:35:12 -0700 |
| commit | 7b548e71806b735a215f7dba26a20771c4f924bd (patch) | |
| tree | b4ea91cc5b8daff17e82cde5c9665a1256a91820 /src/libsyntax | |
| parent | 7dca301cf4ed4d5199d060352f6bcec9a3be3829 (diff) | |
| download | rust-7b548e71806b735a215f7dba26a20771c4f924bd.tar.gz rust-7b548e71806b735a215f7dba26a20771c4f924bd.zip | |
expose mtwt_marksof for testing
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast_util.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs index 57a0e12ec2f..3043d087a15 100644 --- a/src/libsyntax/ast_util.rs +++ b/src/libsyntax/ast_util.rs @@ -979,6 +979,11 @@ pub fn resolve_internal(id : Ident, } /// Compute the marks associated with a syntax context. +pub fn mtwt_marksof(ctxt: SyntaxContext, stopname: Name) -> ~[Mrk] { + marksof(ctxt, stopname, get_sctable()) +} + +// the internal function for computing marks // it's not clear to me whether it's better to use a [] mutable // vector or a cons-list for this. pub fn marksof(ctxt: SyntaxContext, stopname: Name, table: &SCTable) -> ~[Mrk] { |
