about summary refs log tree commit diff
path: root/src/librustsyntax/ast_util.rs
AgeCommit message (Collapse)AuthorLines
2012-05-31Rename librustsyntax to libsyntaxKevin Cantu-554/+0
Per issue #2418.
2012-05-30port alt to dvecNiko Matsakis-5/+5
2012-05-29Fix the maximum value of i16. Closes #2462.Michael Sullivan-1/+1
2012-05-23syntax: Remove one of the two def_id hashersBrian Anderson-12/+0
2012-05-23rustc: Move new_def_hash to ast_utilBrian Anderson-0/+17
2012-05-22Get rid of the >>> operator and make >> logical or arithmetic depending on ↵Michael Sullivan-7/+5
the signedness. Closes #2417.
2012-05-21rustc: Move walk_pat to ast_utilBrian Anderson-0/+12
This will allow ast_map to move to the syntax crate
2012-05-21rustc: Move path_to_ident to ast_utilBrian Anderson-0/+2
2012-05-17Refactor encoder::encode_module_item_pathsTim Chevalier-0/+7
to eliminate some repeated code.
2012-05-16pull out id visitor into ast_util from astencodeNiko Matsakis-0/+151
2012-05-15Generate drop glue correctly for classes with destructorsTim Chevalier-2/+5
2012-05-14First cut at dtors for classesTim Chevalier-0/+6
Classes with dtors should compile now. Haven't yet tested whether they actually run correctly. Beginnings of support for #2295, though that won't be done until there's more test cases and resources are removed.
2012-05-08Start parsing pub/priv on regular itemsMarijn Haverbeke-8/+8
Issue #1893
2012-04-26Refactor operator precedence codeTim Chevalier-0/+17
Use functions instead of a dynamically created table to determine operator precedence. Gets rid of a FIXME in syntax::parse::prec. Change precedences from int to uint while we're at it, since don't use negative precedences.
2012-04-25lots of work to make iface/impls parameterized by regionsNiko Matsakis-1/+2
- paths can now take region parameters, replacing the dirty hack I was doing before of abusing vstores. vstores are now a bit of a hack though. - fix various small bugs: - we never checked that iface types were compatible when casting to an iface with `as` - we allowed nonsense like int<int> - and more! (actually that may be it)
2012-04-25Rewrite exhaustiveness checkerMarijn Haverbeke-1/+0
Issue #2111
2012-04-23Allow classes to be cast to ifaces that are in the same crateTim Chevalier-4/+14
I had to xfail one existing test case (class-implements-int) because, I think, of the same bug described in #2272.
2012-04-23Simplify representation of ast::pathMarijn Haverbeke-4/+4
2012-04-19syntax: Move fn spanned into ast_utilBrian Anderson-0/+4
2012-04-19make nominal types optionally parameterized by a self region.Niko Matsakis-1/+1
Issue #2201.
2012-04-15syntax: Cleanup attr module. Closes #1545Brian Anderson-0/+4
2012-04-13Annotate FIXMEs in syntax::ast and syntax::ast_utilTim Chevalier-3/+3
The main non-comment change was to change simple_path to path, as per a FIXME in ast.
2012-04-10Generic classes and generic class methods work cross-crateTim Chevalier-0/+5
Classes can have ty params now. So can methods inside classes. That was probably true before, but now it should still work if you call methods in a class that's defined in a different crate. Yay!
2012-04-06Convert old-style for loops to new-styleMarijn Haverbeke-7/+7
Most could use the each method, but because of the hack used to disambiguate old- and new-style loops, some had to use vec::each. (This hack will go away soon.) Issue #1619
2012-03-29rustc: Move ast, ast_util, visit to rustsyntaxBrian Anderson-0/+330