This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Commit e7f29d7
Mikhail Arkhipov
Handling dependencies in module persistence (#1471)
* Partial
* Models and views
* Restore log null checks
* Fix merge conflict
* Fix merge issue
* Null check
* Partial
* Partial
* Partial
* Fix test
* Partial
* Partial
* First test
* Baseline comparison
* Builtins
* Partial
* Type fixes
* Fix type names, part I
* Qualified name
* Properly write variables
* Partial
* Construct module from model
* Test
* Variable creations
* Factories
* Factories
* Split construction
* Restore
* Save builtins
* Test passes
* Qualified name
* Better export detection
* Test fixes
* More consistent qualified names
* Sys test
* Demo
* Complete sys write/read
* Partial
* Partial
* Test staility
* Perf bug
* Baseline, remove debug code, deactivate db
* Test fixes
* Test fix
* Simplify a bit
* Baselines and use : separator
* Baselines
* PR feedback
* Merge master
* Remove registry reference
* PR feedback
* PR feedback
* Restore persistence + update test
* Better handle persistent module in dependencies
* Undo
* Add location converter abstraction
* Store member location
* Fix merge issue
* Basic locations test
* Navigation
* Add test
* Update baselines
* Type restore - initial
* Remove debug code
* Partial
* Fix stub merge
* Various model fixes
* Improve module handling
* Qualified name improvements
* Fix unbound case
* Improve stub merge
* Fix qualified names of typing
* Handle stub-only modules
* Add tests for io, re and sys
* Better handle named tuple
* Handle module circular references
* Handle else in platform and version clauses + handle it in symbol collector
* Formatting
* Fix walk of multi-level if statement
* Unify package search in imports
* Fix tests
* Undo change
* Port changes from dbtype
* Partial
* Named tuple support
* Baseline updates
* Debug code
* Support types
* Properly compare class member declaring type
* Nested classes and functions persistence
* Undo debug
* Fix numpy restore
* Baselines
* Fix tests
* Update AnyStr test reflecting changes to AnyStr behavior
* Exclude baselines from git diff
* Fix gitattr
* Move git setting to root
* Try no path
* Test fixes
* Undo change
* Additional stub merge fixes
* Baseline updates
* Fix goto def
* Protect specific type creation
* Track documentaton source
* More reliable tests + simplification
* Typo
* Cleanup
* Basic classification
* Fix merge error
* Module unique id fixes
* Stricted check to save analysis
* Revert "Fix tests"
This reverts commit 247a8c3.
* Revert "Unify package search in imports"
This reverts commit 67fed10.
* Don't clear scope variables with inner classes
* Fix typo
* Many new tests
* Fix collections test
* Fix CTypes
* Initial
* Update test
* Merge issues
* Fix CTypes again
* Fix null bases
* Tell between class members with/without self better
* TypeVar support
* Add bound/covariant
* Fix Enum reassignments
* Fix Random
* Fix import * over local declarations (Socket)
* Move interface
* Fix reference search
* Enable asyncio test
* More tests
* Enable dataclasses
* Add inspect and gzip
* More tests
* Add setting
* Add handling of import position relative to the variable
* Caching level changes
* Partial
* Rework
* Fix null
* Update baselines
* Functools pass
* Reverse stub merge
* Partial
* Partial ctypes
* Update variables post merge
* Fix ctypes
* Merge issues
* Fix typevar
* Add caching on construction
* Assorted fixes
* Named tuples
* Work around os stub oddness
* Fix generic qualified names
* Ignore lambdas
* Support named tuples as bases
* Baselines
* Test updates
* Named tuple tests
* PR feedback
* Using
* Separate creation and population for better handling of forward references.
* Add dependency provider
* Merge issues
* Better class creation
* Partial
* Dependency providers
* Add IsPersistent flag
* Make special global scope
* Move dependency fetch earlier
* Replace AST walk by interface
* Make analysis sequence closer to master
* Undo some
* Undo debug
* Show dependencies in log
* null check
* Update tests
* Make sure factory looks in correct scope
Enable assertions in tests
* Separate stub dependencies
* Don't try and merge from empty stub
* Match generic parameters by name
* Use qualified names in generics
Minor tests cleanup
* Back to names
* Update tests
* usings
* Fix dependencies for stub
* Null check
* PR feedback
* PR feedback + fix merge issue in generics
* Test fixes + PR feedback
* Baseline updates
* PR feedback
* Restore original order
* Order
* Merge issues
* Make cancellation closer to original
* Pass cancellation to module walker
* Simplify1 parent 28ce8e3 commit e7f29d7
File tree
73 files changed
+1378
-885
lines changed- src
- Analysis
- Ast
- Impl
- Analyzer
- Definitions
- Caching/Definitions
- Dependencies
- Documents
- Extensions
- Modules
- Definitions
- Resolution
- Specializations/Typing/Types
- Types
- Collections
- Definitions
- Test
- FluentAssertions
- Core/Impl/DependencyResolution
- Caching
- Impl
- Models
- Properties
- Test
- Files
- Core
- Impl/OS
- Test
- LanguageServer/Test
- UnitTests/Core/Impl
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
73 files changed
+1378
-885
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
21 | 28 | | |
22 | 29 | | |
23 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | | - | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| 52 | + | |
| 53 | + | |
49 | 54 | | |
50 | 55 | | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| 59 | + | |
54 | 60 | | |
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
| 65 | + | |
59 | 66 | | |
60 | 67 | | |
61 | 68 | | |
| |||
146 | 153 | | |
147 | 154 | | |
148 | 155 | | |
| 156 | + | |
149 | 157 | | |
150 | 158 | | |
151 | 159 | | |
| |||
181 | 189 | | |
182 | 190 | | |
183 | 191 | | |
| 192 | + | |
184 | 193 | | |
185 | 194 | | |
186 | 195 | | |
187 | 196 | | |
188 | 197 | | |
| 198 | + | |
189 | 199 | | |
190 | 200 | | |
191 | 201 | | |
192 | 202 | | |
193 | 203 | | |
| 204 | + | |
| 205 | + | |
194 | 206 | | |
195 | 207 | | |
196 | 208 | | |
| |||
220 | 232 | | |
221 | 233 | | |
222 | 234 | | |
223 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
224 | 238 | | |
225 | 239 | | |
226 | 240 | | |
227 | | - | |
| 241 | + | |
228 | 242 | | |
229 | 243 | | |
230 | 244 | | |
| |||
248 | 262 | | |
249 | 263 | | |
250 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
251 | 277 | | |
252 | 278 | | |
253 | 279 | | |
| |||
257 | 283 | | |
258 | 284 | | |
259 | 285 | | |
260 | | - | |
| 286 | + | |
261 | 287 | | |
262 | 288 | | |
263 | 289 | | |
| |||
379 | 405 | | |
380 | 406 | | |
381 | 407 | | |
382 | | - | |
383 | 408 | | |
384 | 409 | | |
385 | 410 | | |
386 | 411 | | |
387 | 412 | | |
388 | | - | |
389 | 413 | | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
404 | 428 | | |
405 | 429 | | |
406 | 430 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | | - | |
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
30 | | - | |
| 28 | + | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
| |||
248 | 246 | | |
249 | 247 | | |
250 | 248 | | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
259 | 253 | | |
260 | 254 | | |
261 | 255 | | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | 256 | | |
266 | 257 | | |
267 | 258 | | |
| |||
273 | 264 | | |
274 | 265 | | |
275 | 266 | | |
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 | | - | |
309 | 267 | | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | 268 | | |
341 | 269 | | |
0 commit comments