@@ -70661,13 +70661,13 @@ module Js_analyzer : sig
7066170661(** Analyzing utilities for [J] module *)
7066270662
7066370663(** for example, whether it has side effect or not.
70664- *)
70664+ *)
7066570665
7066670666val free_variables_of_statement :
70667- Ident_set.t -> Ident_set.t -> J.statement -> Ident_set.t
70667+ Ident_set.t -> Ident_set.t -> J.statement -> Ident_set.t
7066870668
7066970669val free_variables_of_expression :
70670- Ident_set.t -> Ident_set.t -> J.finish_ident_expression -> Ident_set.t
70670+ Ident_set.t -> Ident_set.t -> J.finish_ident_expression -> Ident_set.t
7067170671
7067270672val no_side_effect_expression_desc :
7067370673 J.expression_desc -> bool
@@ -70680,21 +70680,23 @@ val no_side_effect_expression :
7068070680 when you want to do a deep copy, the expression passed to you is pure
7068170681 but you still have to call the function to make a copy,
7068270682 since it maybe changed later
70683- *)
70683+ *)
7068470684
7068570685val no_side_effect_statement :
70686- J.statement -> bool
70686+ J.statement -> bool
7068770687(**
7068870688 here we say
70689- {[ var x = no_side_effect_expression ]}
70689+ {[ var x = no_side_effect_expression ]}
7069070690 is [no side effect], but it is actually side effect,
7069170691 since we are defining a variable, however, if it is not exported or used,
7069270692 then it's fine, so we delay this check later
70693- *)
70693+ *)
7069470694
70695- val eq_expression : J.expression -> J.expression -> bool
70695+ val eq_expression :
70696+ J.expression -> J.expression -> bool
7069670697
70697- val eq_statement : J.statement -> J.statement -> bool
70698+ (* val eq_statement :
70699+ J.statement -> J.statement -> bool *)
7069870700
7069970701val rev_flatten_seq : J.expression -> J.block
7070070702
@@ -70709,7 +70711,7 @@ val is_constant : J.expression -> bool
7070970711*)
7071070712
7071170713val is_simple_no_side_effect_expression
70712- : J.expression -> bool
70714+ : J.expression -> bool
7071370715end = struct
7071470716#1 "js_analyzer.ml"
7071570717(* Copyright (C) 2015-2016 Bloomberg Finance L.P.
@@ -70910,6 +70912,7 @@ let rec eq_expression (x : J.expression) (y : J.expression) =
7091070912 Ident.same i j
7091170913 | Bin (op0, a0,b0) , Bin(op1,a1,b1) ->
7091270914 op0 = op1 && eq_expression a0 a1 && eq_expression b0 b1
70915+ | Str(a0,b0), Str(a1,b1) -> a0 = a1 && b0 = b1
7091370916 | _, _ -> false
7091470917
7091570918and eq_expression_list xs ys =
0 commit comments