This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Commit b2c9afb
Mikhail Arkhipov
Merge master into database branch (#1312)
* Remove old qualified name
* Node storage
* Class and scope to use AST map
* Library analysis
* Fix SO
* Keep small AST with imports
* AST reduction
* Final field
* Initial
* Reload
* Ignore post-final requests
* Drop AST
* Remove local variables
* Test fixes
* Fix overload match
* Tests
* Add locks
* Remove local variables
* Drop file content to save memory
* Cache PEP hints
* Recreate AST
* Fix specialization
* Fix locations
* usings
* Test fixes
* Add options to keep data in memory
* Fix test
* Fix lambda parameters
* Fix argument set
Fix global scope node
* Fix overload doc
* Fix stub merge errors
* Fix async issues
* Undo some changes
* Fix test
* Fix race condition
* 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
* Avoid empty node in empty global scope (#1226)
* Add null checks
* Avoid null node in empty global scope
* Remove unrelated change
* Lock content since it is locked in other cases (#1227)
* Fix addBrackets setting (#1241)
* Fix addBrackets
* Remove unrelated change
* Usings
* Handle library analysis better (#1246)
* Trying to augment argument set with Evaluator and Expression context (#1259)
* Moving anyStr to its own method to prevent FromTypeVar from being called with an ArgumentSet that has no context
* Trying to augment argument set with context wherever possible
* Setting expression in argument set, removing null
* Renaming to WithoutContext and updating comment
* Check for null args in PythonFunctionOverload
* When returning in init method, report a diagnostic error (#1261)
* When returning in init method, report a diagnostic error
* Adding check and tests for returning None before adding error for a return statement in the init function
* Cleaning up tests
* Give Diagnostic messages on improper usage of Generic (#1248)
* Adding diagnostic message for improper use Generic.
* Adding tests to make sure no diagnostics on valid uses of Generic
* Adding diagnostic error on binary operations with incompatible types (#1254)
* Adding diagnostic error for binary operations with incompatible types - e.g 5 + 'str'
* When NewType is called and the first argument is not a string, make a diagnostic message (#1260)
* Adding diagnostic error if the user calls NewType with the first arg not of string type
* Fix typo in TROUBLESHOOTING.md (#1285)
* Multiple analysis fixes (#1297)
Multiple analysis fixes.
- Fixes #1151: Reliable way to determine final analysis of a module
- Fixes #1201: NRE in SymbolCollector.AddProperty
- Fixes #1228: NRE in TryFindMissingDependencies
- Fixes #1294: Handle valid case for reloading AST
- Fixes #1295: FindReferences doesn't work on package init members
- Fixes #1296: DependencyResolver graph misses intermediate imports
- Part of the fix for #1174: All references are not listed when using ms language server (fixes in analysis itself are also required for this one)
* Rework search path resolution (#1289)
* first working path classfier, breaks existing path code for now
* inherit Comparer instead of implementing both
* don't do path depth comparison, preserve user ordering as before
* switch to using new path classification code in main module resolution
* fix typo
* clean up comment about paths in Server.cs
* use String.Split instead of regex when parsing script output
* test ordering of user provided paths
* add new normalize and trim helper, check preconditions as debug asserts rather than commenting on them
* use Split extension, don't MaybeEnumerate paths
* No diagnostic message when Generic is called with no args (#1305)
* No diagnostic message when Generic is called with no args
* When a class inherits from something that is not a class, give a diagnostic error (#1277)
* When analyzing class definitions, give diagnostic if bases are not all class types
* PR feedback1 parent 61d60c4 commit b2c9afb
89 files changed
Lines changed: 2429 additions & 1006 deletions
File tree
- src
- Analysis
- Ast
- Impl
- Analyzer
- Definitions
- Evaluation
- Handlers
- Symbols
- Dependencies
- Diagnostics
- Documents
- Definitions
- Extensions
- Linting/UndefinedVariables
- Modules
- Definitions
- Resolution
- Specializations
- Typing
- Values
- Types
- Definitions
- Values
- Collections
- Test
- FluentAssertions
- Core/Impl
- DependencyResolution
- Interpreter
- Caching/Impl/Factories
- Core/Impl
- Extensions
- IO
- LanguageServer
- Impl
- Completion
- Implementation
- Indexing
- Test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 27 | | |
33 | 28 | | |
34 | 29 | | |
35 | 30 | | |
36 | 31 | | |
37 | 32 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 33 | + | |
52 | 34 | | |
53 | 35 | | |
54 | 36 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | 37 | | |
65 | 38 | | |
66 | 39 | | |
| |||
71 | 44 | | |
72 | 45 | | |
73 | 46 | | |
74 | | - | |
| 47 | + | |
75 | 48 | | |
76 | 49 | | |
77 | 50 | | |
78 | 51 | | |
79 | 52 | | |
80 | | - | |
81 | | - | |
82 | 53 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 54 | + | |
88 | 55 | | |
89 | 56 | | |
90 | | - | |
91 | 57 | | |
92 | 58 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | | - | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
32 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
33 | 42 | | |
34 | 43 | | |
35 | 44 | | |
36 | 45 | | |
37 | 46 | | |
38 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
39 | 54 | | |
40 | 55 | | |
| 56 | + | |
| 57 | + | |
41 | 58 | | |
42 | | - | |
| 59 | + | |
43 | 60 | | |
44 | 61 | | |
45 | 62 | | |
46 | 63 | | |
47 | 64 | | |
48 | 65 | | |
49 | 66 | | |
50 | | - | |
| 67 | + | |
51 | 68 | | |
52 | 69 | | |
53 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | | - | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
Lines changed: 49 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| |||
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
62 | | - | |
63 | | - | |
64 | | - | |
| 65 | + | |
65 | 66 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 | | |
75 | | - | |
76 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
77 | 89 | | |
78 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
79 | 102 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 103 | + | |
85 | 104 | | |
86 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
87 | 109 | | |
88 | 110 | | |
89 | 111 | | |
90 | | - | |
91 | | - | |
| 112 | + | |
| 113 | + | |
92 | 114 | | |
93 | | - | |
94 | | - | |
95 | 115 | | |
| 116 | + | |
96 | 117 | | |
97 | 118 | | |
98 | 119 | | |
| |||
104 | 125 | | |
105 | 126 | | |
106 | 127 | | |
107 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
108 | 132 | | |
109 | 133 | | |
110 | 134 | | |
| |||
132 | 156 | | |
133 | 157 | | |
134 | 158 | | |
135 | | - | |
| 159 | + | |
136 | 160 | | |
137 | 161 | | |
138 | 162 | | |
| |||
194 | 218 | | |
195 | 219 | | |
196 | 220 | | |
197 | | - | |
| 221 | + | |
198 | 222 | | |
199 | 223 | | |
200 | 224 | | |
| |||
0 commit comments