Commit Graph

1380 Commits

Author SHA1 Message Date
Eric Traut
f1eea47014 Fixed regression. 2019-11-15 19:22:20 -08:00
Eric Traut
f7d7cb1ade Fixed broken unit test for circular class dependencies. 2019-11-15 19:09:52 -08:00
Eric Traut
894cdbd52b Added new VS Code setting "pyright.openFilesOnly", which is set to true. 2019-11-15 18:37:14 -08:00
Eric Traut
460239e7d5 Updated dependencies. 2019-11-15 18:36:29 -08:00
Eric Traut
572c6ac0be Moved isAssignmentToDefaultsFollowingNamedTuple out of typeEvaluator into parseTreeUtils. 2019-11-15 18:35:26 -08:00
Eric Traut
b0a604e871 Fixed a symbol resolution bug. 2019-11-15 09:26:56 -08:00
Eric Traut
1c8abf58e4 Sped up language services by not doing a full type check of the open file before returning results. 2019-11-15 00:40:54 -08:00
Eric Traut
2905cb114b Eliminated StringMap in favor of basic Map. 2019-11-15 00:21:03 -08:00
Eric Traut
70fdb5be5d Replaced objects with Maps. 2019-11-14 23:59:15 -08:00
Eric Traut
7653dac547 Changed program module to discard the evaluator if any file contents change. 2019-11-14 23:11:16 -08:00
Eric Traut
1223df9acb Fixed bug in namedtuple hack. 2019-11-14 23:10:53 -08:00
Eric Traut
12cb6c3055 Fixed another bug. 2019-11-14 22:36:56 -08:00
Eric Traut
40f2eccc49 Fixed a few more bugs. 2019-11-14 22:23:54 -08:00
Eric Traut
8b18924442 Fixed a few more bugs. 2019-11-14 21:45:27 -08:00
Eric Traut
96a6ea9415 Fixed more bugs. 2019-11-14 20:53:20 -08:00
Eric Traut
9de260d158 Fixed more bugs. 2019-11-14 17:52:38 -08:00
Eric Traut
8d5f242c1e Fixed a couple of regressions. 2019-11-14 15:01:37 -08:00
Eric Traut
1123b7990a Fixed another infinite recursion issue. 2019-11-14 14:10:08 -08:00
Eric Traut
c37da9bc0d Added cache for callIsNoReturn evaluation. Used speculative mode for evaluating call type. 2019-11-14 12:08:38 -08:00
Eric Traut
bbf77867b8 Implemented isCallNoReturn to honor inferred NoReturn return types. 2019-11-14 00:33:10 -08:00
Eric Traut
c4e155cb5f Implemented lazy evaluation of inferred function return types. 2019-11-14 00:21:35 -08:00
Eric Traut
728fff47dd Moved inferredReturnType out of FunctionDetails. 2019-11-13 23:28:15 -08:00
Eric Traut
aeb15de56c Moved getEffectiveReturnType into type evaluator so we can execute it lazily. 2019-11-13 23:19:30 -08:00
Eric Traut
ebc1d5b648 Removed typeSourceId from overload type interface since it's no longer needed. 2019-11-13 22:45:12 -08:00
Eric Traut
3eea507a49 Fixed reentrancy checks for type resolutions and symbol resolutions. 2019-11-13 22:14:25 -08:00
Eric Traut
1bc2049d47 Improved error reporting for unknown types. 2019-11-12 20:52:47 -08:00
Eric Traut
e7d8b5819c Implemented deferred completion item resolution so we don't need to resolve the type of every returned item unless/until the user selects it from the list of completion items. 2019-11-12 16:23:29 -08:00
Eric Traut
7bb286159c Fixed regression in completion provider. 2019-11-12 13:51:56 -08:00
Eric Traut
0c84489d5e Temporarily enabled third-party library evaluation. 2019-11-12 13:38:23 -08:00
Eric Traut
fab2d951ec Fixed completion provider. 2019-11-12 13:38:08 -08:00
Eric Traut
5f3e2a6fde Fixed regression. 2019-11-12 13:37:53 -08:00
Eric Traut
7fa97dad7d Added code to remove diagnostics when a file is closed. 2019-11-12 11:09:12 -08:00
Eric Traut
835ebf6e88 Added lazy just-in-time binding. 2019-11-12 10:56:50 -08:00
Eric Traut
542d382b20 Added mode for analyzing only open files. 2019-11-12 10:27:53 -08:00
Eric Traut
ae2a540ce8 Roughed in isCallNoReturn. 2019-11-12 10:27:41 -08:00
Eric Traut
157b89cb63 Fixed bug in parameter evaluation code. 2019-11-12 09:51:55 -08:00
Eric Traut
2a448f2ad4 Added code to determine the type of a parameter without evaluating the full type of its function. 2019-11-12 09:04:00 -08:00
Eric Traut
cc8d025480 Renamed TypeAnalysis to Checking for consistency. 2019-11-12 09:03:26 -08:00
Eric Traut
4c14f0ec72 Started to rip out multi-pass logic. 2019-11-12 01:46:35 -08:00
Eric Traut
f9cf519761 Fixed bugs in handling of enums. 2019-11-12 01:34:47 -08:00
Eric Traut
952fcabbc9 Fixed recursion issue. 2019-11-12 00:12:42 -08:00
Eric Traut
8621988151 Removed some unnecessary accessor methods for ClassType. 2019-11-12 00:04:25 -08:00
Eric Traut
57ab21d361 Replaced remainder of getTypeExpression calls. Eliminated parse-node-based type cache in favor of evaluator cache. 2019-11-11 23:50:32 -08:00
Eric Traut
9f2e38a9ca Removed another getExpressionType. 2019-11-11 21:54:19 -08:00
Eric Traut
61ce9a4bb4 Removed more getExpressionType calls. 2019-11-11 21:47:09 -08:00
Eric Traut
e643ec605b Removed currentScope from binder - it's no longer necessary. 2019-11-11 21:31:46 -08:00
Eric Traut
93fa1a89b0 Removed a few more getExpressionType calls. 2019-11-11 21:30:11 -08:00
Eric Traut
977979b988 Fixed a couple of regressions. 2019-11-11 20:04:30 -08:00
Eric Traut
6fda0db05e Moved most of declarationUtils and symbolUtils and large portions of typeUtils into typeEvaluator module. 2019-11-11 19:08:35 -08:00
Eric Traut
98e5ae37ff Removed isFinal field in type cache. 2019-11-11 17:40:09 -08:00