@@ -23,7 +23,7 @@ use core::option;
23
23
use core:: vec;
24
24
use std:: oldmap:: HashMap ;
25
25
26
- pub fn expand_expr ( exts : HashMap < ~ str , SyntaxExtension > , cx : ext_ctxt ,
26
+ pub fn expand_expr ( exts : SyntaxExtensions , cx : ext_ctxt ,
27
27
e : expr_ , s : span , fld : ast_fold ,
28
28
orig : fn @( expr_ , span , ast_fold ) -> ( expr_ , span ) )
29
29
-> ( expr_ , span ) {
@@ -88,7 +88,7 @@ pub fn expand_expr(exts: HashMap<~str, SyntaxExtension>, cx: ext_ctxt,
88
88
//
89
89
// NB: there is some redundancy between this and expand_item, below, and
90
90
// they might benefit from some amount of semantic and language-UI merger.
91
- pub fn expand_mod_items ( exts : HashMap < ~ str , SyntaxExtension > , cx : ext_ctxt ,
91
+ pub fn expand_mod_items ( exts : SyntaxExtensions , cx : ext_ctxt ,
92
92
module_ : ast:: _mod , fld : ast_fold ,
93
93
orig : fn @( ast:: _mod , ast_fold ) -> ast:: _mod )
94
94
-> ast:: _mod {
@@ -121,7 +121,7 @@ pub fn expand_mod_items(exts: HashMap<~str, SyntaxExtension>, cx: ext_ctxt,
121
121
122
122
123
123
// When we enter a module, record it, for the sake of `module!`
124
- pub fn expand_item ( exts : HashMap < ~ str , SyntaxExtension > ,
124
+ pub fn expand_item ( exts : SyntaxExtensions ,
125
125
cx : ext_ctxt , & & it: @ast:: item , fld : ast_fold ,
126
126
orig : fn @( & & v: @ast:: item , ast_fold ) -> Option < @ast:: item > )
127
127
-> Option < @ast:: item > {
@@ -147,7 +147,7 @@ pub fn expand_item(exts: HashMap<~str, SyntaxExtension>,
147
147
148
148
// Support for item-position macro invocations, exactly the same
149
149
// logic as for expression-position macro invocations.
150
- pub fn expand_item_mac ( exts : HashMap < ~ str , SyntaxExtension > ,
150
+ pub fn expand_item_mac ( exts : SyntaxExtensions ,
151
151
cx : ext_ctxt , & & it: @ast:: item ,
152
152
fld : ast_fold ) -> Option < @ast:: item > {
153
153
@@ -206,7 +206,7 @@ pub fn expand_item_mac(exts: HashMap<~str, SyntaxExtension>,
206
206
return maybe_it;
207
207
}
208
208
209
- pub fn expand_stmt(exts: HashMap<~str, SyntaxExtension> , cx: ext_ctxt,
209
+ pub fn expand_stmt(exts: SyntaxExtensions , cx: ext_ctxt,
210
210
&& s: stmt_, sp: span, fld: ast_fold,
211
211
orig: fn@(&&s: stmt_, span, ast_fold) -> (stmt_, span))
212
212
-> (stmt_, span) {
0 commit comments