File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1410,6 +1410,17 @@ pub fn expand_crate(parse_sess: @mut parse::ParseSess,
1410
1410
return ret;
1411
1411
}
1412
1412
1413
+ // HYGIENIC CONTEXT EXTENSION:
1414
+ // all of these functions are for walking over
1415
+ // ASTs and making some change to the context of every
1416
+ // element that has one. a CtxtFn is a trait-ified
1417
+ // version of a closure in (SyntaxContext -> SyntaxContext).
1418
+ // the ones defined here include:
1419
+ // Renamer - add a rename to a context
1420
+ // MultiRenamer - add a set of renames to a context
1421
+ // Marker - add a mark to a context
1422
+ // Repainter - replace a context (maybe Replacer would be a better name?)
1423
+
1413
1424
// a function in SyntaxContext -> SyntaxContext
1414
1425
pub trait CtxtFn {
1415
1426
fn f ( & self , ast:: SyntaxContext ) -> ast:: SyntaxContext ;
You can’t perform that action at this time.
0 commit comments