CARVIEW |
Select Language
HTTP/2 200
date: Thu, 31 Jul 2025 07:49:01 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/eslint/eslint.git
etag: W/"d13c0548d659ec4218056663c09de3c7"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=kuq%2BJRJdoDZYixmPwTup827sUJzO2KCzpMVMI%2FVE89u5Ag1nhvtpJIzaRLZMKFDGIQi0haKRqwPPdKTwAENs%2BSDp296pXD4KVhKtcqRsqL38wqqANNoSTSAgscDItL3BRCsc3dUeWbRZ%2Ba6YgH3Qx%2FZAs%2FJyJAfXZS7gvna52b0MOdxl2kIEcGa4GJUWEFvWhZdM5grbLm3CHjDzIqr2JskzVFYZygScwDdaQoYrDs8nhipqhRK6iiUyi7je7VBgLfgCkBd38uddUcIab%2BeHQg%3D%3D--N%2FK0Swjqz2NBNDv2--V4Dyg29x7hYrfOPDKegi8A%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.186068063.1753948140; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 07:49:00 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 07:49:00 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: DC22:373DAE:56B76D:6C63DF:688B1FEC
refactor: NodeEventGenerator -> SourceCodeTraverser (#19679) · eslint/eslint@f4fa40e · GitHub
Copy file name to clipboard
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit f4fa40e
refactor: NodeEventGenerator -> SourceCodeTraverser (#19679)
* refactor: NodeEventGenerator -> SourceCodeTraverser
refs #18787
* Clean up
* Remove NodeEventGenerator
* Fix CodePathAnalyzer tests
* move currentancestry property to variable
* Update lib/linter/source-code-traverser.js
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
* Update tests/lib/linter/source-code-traverser.js
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
* Don't call SourceCode#traverse() twice
* Add tests for nodeTypeKey
* Add missing tests
* Ensure that AST traversal happens before rule instantiation
* Remove extra file
---------
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>1 parent 81c3c93 commit f4fa40eCopy full SHA for f4fa40e
File tree
Expand file treeCollapse file tree
4 files changed
+458
-227
lines changedFilter options
- lib/linter
- tests/lib/linter
- code-path-analysis
Expand file treeCollapse file tree
4 files changed
+458
-227
lines changed+4-39Lines changed: 4 additions & 39 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 |
| - | |
31 | 30 |
| |
32 | 31 |
| |
33 | 32 |
| |
| |||
66 | 65 |
| |
67 | 66 |
| |
68 | 67 |
| |
69 |
| - | |
70 |
| - | |
| 68 | + | |
71 | 69 |
| |
72 | 70 |
| |
73 | 71 |
| |
| |||
1179 | 1177 |
| |
1180 | 1178 |
| |
1181 | 1179 |
| |
1182 |
| - | |
1183 |
| - | |
1184 |
| - | |
1185 | 1180 |
| |
1186 | 1181 |
| |
1187 | 1182 |
| |
| |||
1201 | 1196 |
| |
1202 | 1197 |
| |
1203 | 1198 |
| |
| 1199 | + | |
1204 | 1200 |
| |
1205 | 1201 |
| |
1206 | 1202 |
| |
| |||
1347 | 1343 |
| |
1348 | 1344 |
| |
1349 | 1345 |
| |
1350 |
| - | |
1351 |
| - | |
1352 |
| - | |
1353 |
| - | |
1354 |
| - | |
1355 |
| - | |
1356 |
| - | |
1357 |
| - | |
1358 |
| - | |
1359 |
| - | |
1360 |
| - | |
1361 |
| - | |
1362 |
| - | |
1363 |
| - | |
1364 |
| - | |
1365 |
| - | |
1366 |
| - | |
1367 |
| - | |
1368 |
| - | |
1369 |
| - | |
1370 |
| - | |
1371 |
| - | |
1372 |
| - | |
1373 |
| - | |
1374 |
| - | |
1375 |
| - | |
1376 |
| - | |
| 1346 | + | |
1377 | 1347 |
| |
1378 |
| - | |
1379 |
| - | |
1380 |
| - | |
1381 |
| - | |
1382 |
| - | |
1383 |
| - | |
| 1348 | + | |
1384 | 1349 |
| |
1385 | 1350 |
| |
1386 | 1351 |
| |
|
lib/linter/node-event-generator.js renamed to lib/linter/source-code-traverser.js
Copy file name to clipboard+143-87Lines changed: 143 additions & 87 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
3 |
| - | |
| 2 | + | |
| 3 | + | |
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| 13 | + | |
13 | 14 |
| |
14 | 15 |
| |
15 | 16 |
| |
16 | 17 |
| |
17 | 18 |
| |
18 | 19 |
| |
19 | 20 |
| |
| 21 | + | |
20 | 22 |
| |
21 | 23 |
| |
22 | 24 |
| |
23 | 25 |
| |
24 | 26 |
| |
25 | 27 |
| |
| 28 | + | |
| 29 | + | |
| 30 | + | |
26 | 31 |
| |
27 | 32 |
| |
28 | 33 |
| |
| |||
33 | 38 |
| |
34 | 39 |
| |
35 | 40 |
| |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 | 41 |
| |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
| 42 | + | |
51 | 43 |
| |
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 |
| - | |
93 |
| - | |
94 |
| - | |
95 |
| - | |
96 |
| - | |
97 |
| - | |
98 |
| - | |
| 44 | + | |
99 | 45 |
| |
100 | 46 |
| |
101 | 47 |
| |
| |||
105 | 51 |
| |
106 | 52 |
| |
107 | 53 |
| |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
108 | 58 |
| |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
109 | 64 |
| |
110 | 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 | + | |
| 93 | + | |
111 | 94 |
| |
112 | 95 |
| |
113 | 96 |
| |
| |||
156 | 139 |
| |
157 | 140 |
| |
158 | 141 |
| |
| 142 | + | |
159 | 143 |
| |
160 | 144 |
| |
161 | 145 |
| |
162 |
| - | |
163 |
| - | |
164 |
| - | |
165 |
| - | |
166 |
| - | |
167 |
| - | |
168 |
| - | |
169 |
| - | |
170 |
| - | |
| 146 | + | |
| 147 | + | |
171 | 148 |
| |
172 | 149 |
| |
173 | 150 |
| |
174 | 151 |
| |
175 | 152 |
| |
176 | 153 |
| |
177 | 154 |
| |
| 155 | + | |
178 | 156 |
| |
179 | 157 |
| |
180 | 158 |
| |
181 |
| - | |
| 159 | + | |
182 | 160 |
| |
183 | 161 |
| |
184 | 162 |
| |
| |||
218 | 196 |
| |
219 | 197 |
| |
220 | 198 |
| |
221 |
| - | |
| 199 | + | |
222 | 200 |
| |
| 201 | + | |
223 | 202 |
| |
224 | 203 |
| |
225 | 204 |
| |
226 | 205 |
| |
227 |
| - | |
| 206 | + | |
228 | 207 |
| |
| 208 | + | |
229 | 209 |
| |
230 | 210 |
| |
231 | 211 |
| |
232 | 212 |
| |
233 | 213 |
| |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
234 | 219 |
| |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
235 | 225 |
| |
236 |
| - | |
237 |
| - | |
238 |
| - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
239 | 240 |
| |
240 |
| - | |
241 |
| - | |
242 |
| - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
243 | 251 |
| |
244 | 252 |
| |
245 | 253 |
| |
246 |
| - | |
247 |
| - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
248 | 259 |
| |
| 260 | + | |
249 | 261 |
| |
250 |
| - | |
251 |
| - | |
252 |
| - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
253 | 309 |
| |
254 | 310 |
| |
255 | 311 |
| |
256 |
| - | |
| 312 | + |
You can’t perform that action at this time.
0 commit comments