This repository was archived by the owner on Apr 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 133
Improve handling of circular dependencies #1686
Merged
Merged
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
c9ff4e1
Refactoring
AlexanderSher 6ab46ad
WIP
AlexanderSher 76887fc
Merge commit '88762ef1a11cfddd51d382c920359c36e95f8d4d' into Numpy
AlexanderSher 1068b18
Bug fixes
AlexanderSher 03f004d
Fix part of the test
AlexanderSher 43c7766
Fully restore tests
AlexanderSher c6a9c22
Remove stale reference
cbfd3e2
Initial
1360827
Merge branch 'master' of https://github.com/microsoft/python-language…
e5f0110
Merge issues
87f280a
Merge branch 'master' of https://github.com/microsoft/python-language…
782ca9a
Merge fixes
ee0a213
Fix null ref
ccaaa02
Merge branch 'master' of https://github.com/microsoft/python-language…
51463f3
Merge branch 'master' of https://github.com/microsoft/python-language…
a1b238b
Fix creation of entries for missing keys
2a1821d
Merge branch 'master' of https://github.com/microsoft/python-language…
a9ae53f
Increase cancellation time in debug
f329e8f
Merge branch 'mkeys2' into numpy
263ac4a
Merge branch 'mkeys2' of https://github.com/MikhailArkhipov/python-la…
1523067
Merge branch 'numpy' of https://github.com/MikhailArkhipov/python-lan…
0ce2ef6
Cache walker + add failing test
6bed88a
Merge remote-tracking branch 'Microsoft/master' into Numpy
AlexanderSher 695dd85
Fix GetMemberNames
AlexanderSher d01cb08
Remove `InvalidateAnalysis` call from constructor
AlexanderSher 152a4a2
Build fix
AlexanderSher bc80e57
Merge branch 'master' into Numpy
AlexanderSher 50ca658
Merge recent
83d1c65
Merge issues
7ac9f14
Fix FindReferences
AlexanderSher e7832d0
Merge branch 'Numpy' of https://github.com/AlexanderSher/python-langu…
4f8e2ae
Tests
bab1a32
Tests
732f263
Merge master
f1a2efd
Add restoration from db in loop handling
a1bf54a
Revert "Add restoration from db in loop handling"
bcebb91
Merge master and fix loop node markWalked
11de546
Make numpy worh with library caching
9a935e7
Fix saving of ALL import statements
37a1048
Fix stub merge typo (members only in source were not transferred)
2a9c7a7
Don't re-analyze cached loop
b06c601
Fix TypeVar bound to Unknown
be880b9
Fix lambda restore
a01fb7d
Merge branch 'master' of https://github.com/microsoft/python-language…
38d0ea0
Walk loops fully
5db4970
Fix diagnostics on reopen
9b5c74f
Fix gotodef test
0f6a07a
Fix key exception
d461b8a
Add original test
62d84e3
Handle annotations in loops
e6bf9b9
Merge master
fda7234
Null check
52fe42c
Merge branch 'master' into numpy
jakebailey 2be00a2
Merge master
67752e7
Call ActivityTracker on modules in loops
jakebailey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/Analysis/Ast/Impl/Analyzer/Handlers/IImportedVariableHandler.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright(c) Microsoft Corporation | ||
// All rights reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the License); you may not use | ||
// this file except in compliance with the License. You may obtain a copy of the | ||
// License at http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS | ||
// OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY | ||
// IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
// MERCHANTABILITY OR NON-INFRINGEMENT. | ||
// | ||
// See the Apache Version 2.0 License for specific language governing | ||
// permissions and limitations under the License. | ||
|
||
using System.Collections.Generic; | ||
using Microsoft.Python.Analysis.Modules; | ||
using Microsoft.Python.Analysis.Values; | ||
|
||
namespace Microsoft.Python.Analysis.Analyzer.Handlers { | ||
internal interface IImportedVariableHandler { | ||
IEnumerable<string> GetMemberNames(PythonVariableModule variableModule); | ||
IVariable GetVariable(in PythonVariableModule module, in string name); | ||
void EnsureModule(in PythonVariableModule module); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After rereading this PR and checking references/impls, this function actually only ever returns what gets copied in a
*
import, soGetMemberNames
is actually a misnomer and should probably be renamed to better reflect that, likeGetStarImportMemberNames
or similar.