Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TVMScript,Fix] Fix findsource when classes are indented #13924

Merged
merged 1 commit into from
Feb 7, 2023

Conversation

tkonolige
Copy link
Contributor

Leaving class definitions was not correctly handled when recreating scoping information. The fix correctly pops scope whenever the indentation level becomes less than the current scope. I believe this was introduced in #12978.

@cyx-6 @junrushao

Leaving class definitions was not correctly handled when recreating
scoping information. The fix correctly pops scope whenever the
indentation level becomes less than the current scope.
@tvm-bot
Copy link
Collaborator

tvm-bot commented Feb 6, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

Copy link
Contributor

@cyx-6 cyx-6 left a comment

Choose a reason for hiding this comment

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

Hi @tkonolige! Thanks for reporting this bug. The fix looks good to me.

@cyx-6 cyx-6 merged commit 5456fae into apache:main Feb 7, 2023
cyx-6 pushed a commit to cyx-6/tvm that referenced this pull request Aug 22, 2023
This PR fixes the bug in parser source inspection. In apache#13924, we fixed the bug of nesting function by checking the indent decrease. However, we should skip the cases when the decrease is in the formatted multi-line function argument list. So this PR fixes this bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants