Skip to content

Commit 7b548e7

Browse files
committed
expose mtwt_marksof for testing
1 parent 7dca301 commit 7b548e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/libsyntax/ast_util.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,11 @@ pub fn resolve_internal(id : Ident,
979979
}
980980
981981
/// Compute the marks associated with a syntax context.
982+
pub fn mtwt_marksof(ctxt: SyntaxContext, stopname: Name) -> ~[Mrk] {
983+
marksof(ctxt, stopname, get_sctable())
984+
}
985+
986+
// the internal function for computing marks
982987
// it's not clear to me whether it's better to use a [] mutable
983988
// vector or a cons-list for this.
984989
pub fn marksof(ctxt: SyntaxContext, stopname: Name, table: &SCTable) -> ~[Mrk] {

0 commit comments

Comments
 (0)