aboutsummaryrefslogtreecommitdiff
path: root/src/comp
Commit message (Collapse)AuthorAgeFilesLines
* Produce better errors for invalid imports.Rafael Ávila de Espíndola2011-01-121-0/+6
|
* Call find_final_def directly in fold_view_item_import. It is both cleaner andRafael Ávila de Espíndola2011-01-121-1/+1
| | | | faster.
* Change mod_index_entry to point directly to items and view_items.Rafael Ávila de Espíndola2011-01-124-58/+66
|
* Figure out what tydescs we need to pass when translating parametric function ↵Patrick Walton2011-01-122-4/+57
| | | | calls
* Fix another import case we got wrong: The local environment should notRafael Ávila de Espíndola2011-01-111-27/+47
| | | | interfere with the import statements.
* Fix two invalid import cases we were not detecting:Rafael Ávila de Espíndola2011-01-111-12/+29
| | | | | | | * If an import was unused we would never print any errors for it. * We would keep the existing environment in scope when descending 'foo.bar' and would find 'bar' in the global environment if there was no 'bar' in 'foo'.
* Sketch support for reading multi-file crates in rustc. Add test, not yet ↵Graydon Hoare2011-01-101-32/+138
| | | | working.
* Drop closures. Un-XFAIL bind-interior.rs.Graydon Hoare2011-01-071-7/+54
|
* Add sufficient import support to compile some simple single-crate programs.Rafael Ávila de Espíndola2011-01-073-37/+115
| | | | | This is likely not the final solution. It does repetitive work and doesn't produce errors for invalid but unused imports. In any case, I think it is a useful step.
* Synthesize closure thunks, and pass closure pointer into fn calls.Graydon Hoare2011-01-071-30/+170
|
* Whitespace cleanup, and copy target into closure.Graydon Hoare2011-01-061-7/+10
|
* Add the boilerplate for folding view items.Rafael Ávila de Espíndola2011-01-061-1/+65
|
* Sketch closure-forming logic for nontrivial bindings.Graydon Hoare2011-01-052-4/+79
|
* Translate trivial bindings. Un-XFAIL bind-trivial.rs.Graydon Hoare2011-01-051-8/+20
|
* Use uniform pair representation of functions everywhere, including static ↵Graydon Hoare2011-01-052-38/+132
| | | | functions.
* rustc: Allow the type unification handler to handle both expected and actual ↵Patrick Walton2011-01-042-4/+20
| | | | param types
* Correct function pointer type in closure.Graydon Hoare2011-01-041-2/+2
|
* Merge remote branch 'espindola/import'Graydon Hoare2011-01-043-5/+9
|\
| * Add names from imports to the namespace.Rafael Ávila de Espíndola2011-01-043-5/+9
| |
* | rustc: Add an item type accessorPatrick Walton2011-01-041-0/+38
|/
* Add support for looking up a name introduced by a 'use'.Rafael Ávila de Espíndola2011-01-043-11/+38
| | | | | | | | | | With this we go from "error: unresolved name: foo" to "unimplemented definition variant for: foo" in use foo; fn main(vec[str] args) { foo.bar(); }
* Refactor the view_item code so that it is similar to the code used forRafael Ávila de Espíndola2011-01-042-30/+40
| | | | parsing regular items.
* Rename use_or_import to view_item.Rafael Ávila de Espíndola2011-01-042-8/+8
|
* Begin sketching translation of bind_expr. No captures yet, also crashy.Graydon Hoare2011-01-031-1/+40
|
* Split driver between parsing source files and crate files, by extension. Add ↵Graydon Hoare2011-01-032-2/+21
| | | | dummy function for crate files.
* Typecheck expr_bind.Graydon Hoare2011-01-031-13/+57
|
* Add type accessors for fn types.Graydon Hoare2011-01-031-0/+24
|
* Fix fold bug on expr_bind.Graydon Hoare2011-01-031-0/+3
|
* Actually return the correct node from the parser.Graydon Hoare2011-01-031-2/+1
|
* Remove missed debug chatter.Graydon Hoare2011-01-031-1/+0
|
* Add restricted-parse mode, and parse bind expressions.Graydon Hoare2010-12-311-10/+68
|
* Translate local item decls.Graydon Hoare2010-12-311-0/+3
|
* Update method-fold env with fake item_fn representing the method.Graydon Hoare2010-12-311-1/+12
|
* Change resolve errs to span_errs.Graydon Hoare2010-12-311-4/+4
|
* Parse local item decls.Graydon Hoare2010-12-311-6/+36
|
* Index tag and obj items in decl stmts.Graydon Hoare2010-12-311-0/+6
|
* Free objects by indirectly dropping fields via enclosed tydesc first.Graydon Hoare2010-12-311-2/+49
|
* Replace arg Load with load_non_structural in obj ctor.Graydon Hoare2010-12-311-1/+1
|
* Teach ty.unify about ty_obj.Graydon Hoare2010-12-311-0/+83
|
* Move unify_fn logic out-of-line.Graydon Hoare2010-12-311-59/+72
|
* Teach typeck.ast_ty_to_ty about ty_obj.Graydon Hoare2010-12-301-3/+13
|
* Teach fold about ty_obj.Graydon Hoare2010-12-301-0/+24
|
* Teach trans to access object fields.Graydon Hoare2010-12-301-14/+100
|
* Assign method types properly by sorted-order.Graydon Hoare2010-12-301-8/+12
|
* Teach typeck to check obj field accesses.Graydon Hoare2010-12-301-3/+41
|
* Teach resolve to find obj fields and ty params from methods.Graydon Hoare2010-12-301-0/+12
|
* Add def id to ast for obj fields.Graydon Hoare2010-12-301-0/+1
|
* Record the ast of uses and imports.Rafael Ávila de Espíndola2010-12-302-21/+59
|
* rustc: Make parametric return types go through an out pointerPatrick Walton2010-12-291-6/+30
|
* Add a -shared option to rustc and don't try to look for main if it is given.Rafael Ávila de Espíndola2010-12-292-6/+14
|