-
Notifications
You must be signed in to change notification settings - Fork 653
/
IfScope.php
92 lines (76 loc) · 1.67 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
87
88
89
90
91
92
<?php
namespace Psalm\Internal\Scope;
use Psalm\Internal\Clause;
use Psalm\Type;
/**
* @internal
*/
class IfScope
{
/**
* @var array<string, Type\Union>|null
*/
public $new_vars = null;
/**
* @var array<string, bool>
*/
public $new_vars_possibly_in_scope = [];
/**
* @var array<string, Type\Union>|null
*/
public $redefined_vars = null;
/**
* @var array<string, bool>|null
*/
public $assigned_var_ids = null;
/**
* @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 = null;
/**
* @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 = [];
/**
* Variables that were mixed, but are no longer
*
* @var array<string, Type\Union>|null
*/
public $possible_param_types = null;
/**
* @var string[]
*/
public $final_actions = [];
/**
* @var ?\Psalm\Context
*/
public $mic_drop_context;
}