/
IfScope.php
86 lines (71 loc) · 1.5 KB
/
IfScope.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
namespace Psalm\Internal\Scope;
use Psalm\Context;
use Psalm\Internal\Clause;
use Psalm\Type;
/**
* @internal
*/
class IfScope
{
/**
* @var array<string, Type\Union>|null
*/
public $new_vars;
/**
* @var array<string, bool>
*/
public $new_vars_possibly_in_scope = [];
/**
* @var array<string, Type\Union>|null
*/
public $redefined_vars;
/**
* @var array<string, int>|null
*/
public $assigned_var_ids;
/**
* @var array<string, bool>
*/
public $possibly_assigned_var_ids = [];
/**
* @var array<string, Type\Union>
*/
public $possibly_redefined_vars = [];
/**
* @var array<string, bool>
*/
public $updated_vars = [];
/**
* @var array<string, array<int, array<int, string>>>
*/
public $negated_types = [];
/**
* @var array<string, bool>
*/
public $if_cond_changed_var_ids = [];
/**
* @var array<string, string>|null
*/
public $negatable_if_types;
/**
* @var list<Clause>
*/
public $negated_clauses = [];
/**
* These are the set of clauses that could be applied after the `if`
* statement, if the `if` statement contains branches with leaving statements,
* and the else leaves too
*
* @var list<Clause>
*/
public $reasonable_clauses = [];
/**
* @var string[]
*/
public $final_actions = [];
/**
* @var ?Context
*/
public $post_leaving_if_context;
}