Move functions from syntax::ast to syntax::ast_util

This leaves syntax::ast just defining the AST, which strikes me as somewhat
nicer
This commit is contained in:
Brian Anderson 2011-08-21 21:44:41 -07:00
parent a3affaa20f
commit 152cbaade7
33 changed files with 358 additions and 314 deletions

View file

@ -7,6 +7,7 @@ import std::str;
import std::io;
import std::map::hashmap;
import syntax::ast;
import syntax::ast_util;
import front::attr;
import middle::ty;
import common::*;
@ -335,7 +336,7 @@ fn get_attributes(md: &ebml::doc) -> [ast::attribute] {
let meta_item = meta_items[0];
attrs +=
[{node: {style: ast::attr_outer, value: *meta_item},
span: ast::dummy_sp()}];
span: ast_util::dummy_sp()}];
}
}
option::none. { }