diff options
author | Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr> | 2015-03-24 15:56:51 +0100 |
---|---|---|
committer | Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr> | 2015-03-24 15:56:51 +0100 |
commit | d65eaaaa8cb311a0344a584df7a4b405034780b9 (patch) | |
tree | d891cdae598e5312471a764edd5178ec7f6df022 /interp/notation.ml | |
parent | 3646aea90ae927af9262e994048a3bd863c57839 (diff) |
Revert "Useless check when loading notations through import."
This reverts commit 124734fd2c523909802d095abb37350519856864.
Diffstat (limited to 'interp/notation.ml')
-rw-r--r-- | interp/notation.ml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/interp/notation.ml b/interp/notation.ml index aeec4b615..6040c33a5 100644 --- a/interp/notation.ml +++ b/interp/notation.ml @@ -516,6 +516,14 @@ let availability_of_prim_token n printer_scope local_scopes = (* Miscellaneous *) +let exists_notation_in_scope scopt ntn r = + let scope = match scopt with Some s -> s | None -> default_scope in + try + let sc = String.Map.find scope !scope_map in + let (r',_) = String.Map.find ntn sc.notations in + Pervasives.(=) r' r (** FIXME *) + with Not_found -> false + let isNVar_or_NHole = function NVar _ | NHole _ -> true | _ -> false (**********************************************************************) |