diff options
| author | John Clements <clements@racket-lang.org> | 2013-06-25 11:43:52 -0700 |
|---|---|---|
| committer | John Clements <clements@racket-lang.org> | 2013-09-06 13:35:08 -0700 |
| commit | 91d3c364303c3a057feadd40adef0880531e08cc (patch) | |
| tree | 75426f5dd94c6bace0bd4c7cd52168b48ef5abb7 /src/libsyntax/parse | |
| parent | b7c0512b27d287cf0657ae4b195d1ca41623c944 (diff) | |
| download | rust-91d3c364303c3a057feadd40adef0880531e08cc.tar.gz rust-91d3c364303c3a057feadd40adef0880531e08cc.zip | |
adding test case to check marking/unmarking
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 8de597733ae..66f121727af 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -9,7 +9,7 @@ // except according to those terms. use ast; -use ast::Name; +use ast::{Name, Mrk}; use ast_util; use parse::token; use util::interner::StrInterner; @@ -557,6 +557,11 @@ pub fn fresh_name(src_name : &ast::Ident) -> Name { gensym(fmt!("%s_%u",ident_to_str(src_name),num)) } +// create a fresh mark. +pub fn fresh_mark() -> Mrk { + gensym("mark") +} + /** * All the valid words that have meaning in the Rust language. * |
