Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 24 lines (18 sloc) 0.902 kb
630418d Quentin Bourgerie [feature] compiler, jsimp: Imp_Cleaning
BourgerieQuentin authored
1 (*
2 Copyright © 2011, 2012 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 (** Clean useless declaration on the given JavaScript code. All declarations
20 where the [keep] function returns [true] is kept even if the declaration is
21 useless.
22 *)
23 val process_code : keep:(JsAst.ident -> bool) -> JsAst.code -> JsAst.code
Something went wrong with that request. Please try again.