Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 46 lines (34 sloc) 1.33 kB
fccc685 Initial open-source release
MLstate authored
1 (*
2 Copyright © 2011 MLstate
3
4 This file is part of OPA.
5
6 OPA is free software: you can redistribute it and/or modify it under the
7 terms of the GNU Affero General Public License, version 3, as published by
8 the Free Software Foundation.
9
10 OPA is distributed in the hope that it will be useful, but WITHOUT ANY
11 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
13 more details.
14
15 You should have received a copy of the GNU Affero General Public License
16 along with OPA. If not, see <http://www.gnu.org/licenses/>.
17 *)
18
19 (**
20 Checking on Pattern Matching.
21
22 @author Rudy Sicard
23 @author Mathieu Barbin
24 *)
25
26 (**
27 This pass perform some checks on pattern matching.
28 In case of illicit patterns, the pass simply raise some warnings
29 with located error messages.
30
31 The code is typed, so that we can perform more clever checks.
32
33 Currently, the code is not transformed.
34 We can activate a toggle for applying the pattern normalization,
35 until we decide in what cases we do want to keep the normalized
36 version (if e.g. size explosion)
37 *)
38
39 val process_code :
40 QmlTypes.gamma ->
41 QmlAst.annotmap ->
42 QmlAst.code ->
43 QmlAst.annotmap * QmlAst.code
44
45 val warning_set : WarningClass.Set.t
Something went wrong with that request. Please try again.