diff options
| author | herbelin | 2012-11-17 03:09:23 +0000 |
|---|---|---|
| committer | herbelin | 2012-11-17 03:09:23 +0000 |
| commit | 35846ec22445e14cb044ef3beb62f5c559d94752 (patch) | |
| tree | 283e8cc0a05b3f1722dadaabc900341ee63499ed /interp/notation.ml | |
| parent | beca7a2c11d6521bd9eec7bb0eb5d77a345f99ef (diff) | |
Taking into account the type of a definition (if it exists), and the
type in "cast" to activate the temporary interpretation scope.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15978 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'interp/notation.ml')
| -rw-r--r-- | interp/notation.ml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/interp/notation.ml b/interp/notation.ml index 8483e18a99..58a6d05938 100644 --- a/interp/notation.ml +++ b/interp/notation.ml @@ -513,6 +513,12 @@ let compute_arguments_scope_full t = let compute_arguments_scope t = fst (compute_arguments_scope_full t) +let compute_type_scope t = + find_scope_class_opt (try Some (compute_scope_class t) with Not_found -> None) + +let compute_scope_of_global ref = + find_scope_class_opt (Some (ScopeRef ref)) + (** When merging scope list, we give priority to the first one (computed by substitution), using the second one (user given or earlier automatic) as fallback *) |
