Leo White
b4361282c1
Fix PR#7897
2020-06-26 12:35:35 +01:00
Jacques Garrigue
95a8fbfd5b
change API for Env.open_signature to clarify errors
2020-06-23 16:36:55 +02:00
Nicolás Ojeda Bär
57d329e07b
Deprecate -annot ( #2141 )
...
* Move driver code from Cmt2annot to Read_cmt
* Move cmt2annot.ml into typing/
* make depend
* Use standard error handling
* Move specific logic to read_cmt
* Do not pass full cmt record as argument
* Better locations
* Emit .annot files produced from cmt data
* Remove direct calls to Stypes
* Deprecate -annot
* Changes
* make depend
* Adapt doc
* make -C tools depend
2020-03-13 12:59:34 +01:00
Leo White
c19e8b2350
Refactor environment lookup functions
2019-08-15 15:56:50 +01:00
Alain Frisch
5ccf3c52dc
New implementation of Env.make_copy_of_types ( #8774 )
2019-07-18 10:11:41 +09:00
Thomas Refis
cd78d1d072
envaux: keep the scope
2019-04-16 10:56:05 +01:00
Jeremie Dimino
7e0862a212
Refactor load path management and initial environment
...
- Add a Load_path module which caches files lookup
- Instead of falling back to the external environment, allow to
declare in the environment that a module comes from the external
world. This allows persistent structures to shadows non-persistent
ones
2019-01-30 16:36:38 +00:00
Leo White
111d4e1827
Remove positions from paths
2018-11-21 03:39:34 -05:00
Nicolás Ojeda Bär
ccd89ba895
Envaux.env_from_summary: guard against failure to find module
2018-08-21 15:07:29 +05:30
Gabriel Radanne
1be47bf7ab
Just some tbl things. ( #1699 )
2018-07-23 13:19:41 +01:00
Thomas Refis
ac1ced70c5
Env.{make_copy_of_types,do_copy_types}: add some abstraction and explicit some invariants
...
Also, write a faster version: [do_copy_types (make_copy_of_types l env) env]
should have the same performance as the original [copy_types l env].
2018-04-25 10:08:05 +01:00
Thomas Refis
945066bd7b
split copy_types in two
2018-04-25 10:08:04 +01:00
Jérémie Dimino
49f6dd5d20
Allow compilation units to shadow sub-modules of Pervasives ( #1513 )
2018-02-02 10:44:23 +00:00
alainfrisch
d8b413f17f
Expose a more explicit 'copy types' operation in Env (with a representation in summary), instead of a more generic 'update_value'.
2017-03-24 14:24:36 +01:00
alainfrisch
1cad974131
Restore proper error message when opening a functor.
2017-03-24 14:24:36 +01:00
alainfrisch
3d037367a2
Implement type-checking of open by copying 'components' instead of recreating them from the signature.
2017-03-24 14:24:36 +01:00
alainfrisch
32f0e2120c
Detect unused module declarations.
2016-07-18 10:35:19 +02:00
Jacques Garrigue
5331b57010
keep local constraints in Env.summary
2016-05-11 08:38:34 +09:00
Damien Doligez
5401ce8473
Update headers for the new license.
...
Remains to be done: remove all headers in testsuite/tests.
2016-02-18 16:59:16 +01:00
Damien Doligez
a18bc7950b
merge changes of version/4.02 from r15121 to r15155
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15168 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-08-29 17:14:00 +00:00
Jacques Garrigue
b56dc4b3df
PR#5584: merge open extensible types, extension-patch-4.0.2
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14737 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-05-04 23:08:45 +00:00
Jacques Garrigue
5f68db9cf0
Merge trunk at revision 14200. Now everything works except private types
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/module-alias@14201 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-09-30 13:54:59 +00:00
Jacques Garrigue
9ddb346f54
do not alias functor parameters + some problems with coercions not fixed yet
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/module-alias@14198 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-09-30 02:10:21 +00:00
Alain Frisch
cc31694f7c
Keep attributes on module declarations.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14195 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-09-27 17:05:39 +00:00
Alain Frisch
c8d20ade02
Do not track unused type declarations created by 'include'.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14158 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-09-17 14:28:31 +00:00
Damien Doligez
7844495624
Merge branch 4.01 from branching point to 4.01.0+rc1
...
Command line used:
svn merge --accept postpone -r 13776:14055 $REPO/version/4.01 .
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14060 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-09-04 15:12:37 +00:00
Alain Frisch
a3b1c67fff
#5980 : explicit way to silence the new warning (open! X).
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13685 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-05-16 13:34:53 +00:00
Damien Doligez
def31744f9
remove all $Id keywords
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-15 17:50:56 +00:00
Fabrice Le Fessant
5ae3458a4d
Remove dependency from typing/envaux.ml to bytecomp/instruct.ml
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12793 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-30 10:00:10 +00:00
Fabrice Le Fessant
776c46fce8
Fix problem of size of bin-annot files
...
- Reset most of the fields of Env.t when saving bin-annot files
- Move debugger/envaux.ml to typing/, and add a function to
recover environements from bin-annot files.
- Move tools/typedtreeIter.ml to typing/
- Move the code of typing/typedtreeMap.ml from cmt_format.ml
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12702 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-12 11:02:18 +00:00