Skip to content

Python: Type tracker changes#6858

Merged
hvitved merged 4 commits into
github:mainfrom
hvitved:python/type-tracker-changes
Nov 2, 2021
Merged

Python: Type tracker changes#6858
hvitved merged 4 commits into
github:mainfrom
hvitved:python/type-tracker-changes

Conversation

@hvitved
Copy link
Copy Markdown
Contributor

@hvitved hvitved commented Oct 12, 2021

The first commit caches TypeBackTracker::prepend, similar to how TypeTracker::append is cached.

The second commit introduces a new predicate TypeBackTracker::getACompatibleTypeTracker(), which is useful when reasoning about nodes that can be reached in both forwards tracking and backwards tracking.

@hvitved hvitved requested a review from a team as a code owner October 12, 2021 14:23
tausbn
tausbn previously approved these changes Oct 25, 2021
Copy link
Copy Markdown
Contributor

@tausbn tausbn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor suggestion, otherwise LGTM. 👍

Comment thread python/ql/lib/semmle/python/dataflow/new/internal/TypeTracker.qll Outdated
@hvitved hvitved dismissed stale reviews from tausbn via 71592d2 October 31, 2021 07:57
@RasmusWL
Copy link
Copy Markdown
Member

RasmusWL commented Nov 2, 2021

@hvitved I think just accepting the suggestion caused trouble due to the file being synchronized 😳

@hvitved hvitved force-pushed the python/type-tracker-changes branch from 71592d2 to fe80c4a Compare November 2, 2021 10:17
@hvitved hvitved requested a review from a team as a code owner November 2, 2021 10:17
@github-actions github-actions Bot added the Ruby label Nov 2, 2021
@hvitved
Copy link
Copy Markdown
Contributor Author

hvitved commented Nov 2, 2021

I think just accepting the suggestion caused trouble due to the file being synchronized

Yes, this happened because the PR was created before Ruby got merged into the repo. I have rebased the PR and synchronized the Ruby copy.

@hvitved hvitved merged commit 302373d into github:main Nov 2, 2021
@hvitved hvitved deleted the python/type-tracker-changes branch November 2, 2021 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants