@@ -51,8 +51,6 @@ class CodeLocation
51
51
52
52
protected int $ file_end ;
53
53
54
- protected bool $ single_line ;
55
-
56
54
protected int $ preview_start ;
57
55
58
56
private int $ preview_end = -1 ;
@@ -67,20 +65,12 @@ class CodeLocation
67
65
68
66
private string $ snippet = '' ;
69
67
70
- private ?string $ text = null ;
71
-
72
68
public ?int $ docblock_start = null ;
73
69
74
70
private ?int $ docblock_start_line_number = null ;
75
71
76
- protected ?int $ docblock_line_number = null ;
77
-
78
- private ?int $ regex_type = null ;
79
-
80
72
private bool $ have_recalculated = false ;
81
73
82
- public ?CodeLocation $ previous_location = null ;
83
-
84
74
public const VAR_TYPE = 0 ;
85
75
public const FUNCTION_RETURN_TYPE = 1 ;
86
76
public const FUNCTION_PARAM_TYPE = 2 ;
@@ -119,11 +109,11 @@ class CodeLocation
119
109
public function __construct (
120
110
FileSource $ file_source ,
121
111
PhpParser \Node $ stmt ,
122
- ?CodeLocation $ previous_location = null ,
123
- bool $ single_line = false ,
124
- ?int $ regex_type = null ,
125
- ?string $ selected_text = null ,
126
- ?int $ comment_line = null ,
112
+ public ?CodeLocation $ previous_location = null ,
113
+ protected bool $ single_line = false ,
114
+ private ?int $ regex_type = null ,
115
+ private ?string $ text = null ,
116
+ protected ?int $ docblock_line_number = null ,
127
117
) {
128
118
/** @psalm-suppress ImpureMethodCall Actually mutation-free just not marked */
129
119
$ this ->file_start = (int )$ stmt ->getAttribute ('startFilePos ' );
@@ -133,10 +123,6 @@ public function __construct(
133
123
$ this ->raw_file_end = $ this ->file_end ;
134
124
$ this ->file_path = $ file_source ->getFilePath ();
135
125
$ this ->file_name = $ file_source ->getFileName ();
136
- $ this ->single_line = $ single_line ;
137
- $ this ->regex_type = $ regex_type ;
138
- $ this ->previous_location = $ previous_location ;
139
- $ this ->text = $ selected_text ;
140
126
141
127
/** @psalm-suppress ImpureMethodCall Actually mutation-free just not marked */
142
128
$ doc_comment = $ stmt ->getDocComment ();
@@ -148,8 +134,6 @@ public function __construct(
148
134
149
135
/** @psalm-suppress ImpureMethodCall Actually mutation-free just not marked */
150
136
$ this ->raw_line_number = $ stmt ->getStartLine ();
151
-
152
- $ this ->docblock_line_number = $ comment_line ;
153
137
}
154
138
155
139
/**
0 commit comments