// ______________________________________________________________________
// Encoding and decoding the AST itself
//
// When decoding, we have to renumber the AST so that the node ids that
// appear within are disjoint from the node ids in our existing ASTs.
// We also have to adjust the spans: for now we just insert a dummy span,
// but eventually we should add entries to the local codemap as required.
Encoding and decoding the AST itself

When decoding, we have to renumber the AST so that the node ids that
appear within are disjoint from the node ids in our existing ASTs.
We also have to adjust the spans: for now we just insert a dummy span,
but eventually we should add entries to the local codemap as required.
Encoding and decoding the AST itself When decoding we have to renumber the AST so that the node ids that appear within are disjoint from the node ids in our existing ASTs . We also have to adjust the spans : for now we just insert a dummy span but eventually we should add entries to the local codemap as required .
fn encode_ast(rbml_w: &mut Encoder, item: &InlinedItem) {
    rbml_w.start_tag(c::tag_tree as usize);
    item.encode(rbml_w);
    rbml_w.end_tag();
}
fn encode_ast ( rbml_w : & mut Encoder , item : & InlinedItem ) { rbml_w . start_tag ( c :: tag_tree as usize ) ; item . encode ( rbml_w ) ; rbml_w . end_tag ( ) ; }
______________________________________________________________________
Encoding and decoding the AST itself
______________________________________________________________________ Encoding and decoding the AST itself
rbml_w
&mut Encoder
item
&InlinedItem