expose mtwt_marksof for testing

This commit is contained in:
John Clements 2013-07-12 18:35:05 -07:00
parent 7dca301cf4
commit 7b548e7180

View File

@ -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] {