Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Conversation

MikhailArkhipov
Copy link

Fixes #1231

Root cause is that class evaluator was declaring members as variables and then collected variables into members. Smaller change than earlier.

  • Add IsClassMember to variable. VariableSource does not fit since class member behaves like a flag.
  • Add option to scope search to return class member variables.
  • In linter and hover use option to obtain all variables. In completions use regular option.

@jakebailey
Copy link
Member

Using my examples in #1231, I can see that the analysis and completion reflect this change, but hovering doesn't:

image

image

@jakebailey
Copy link
Member

Not sure why, but ReferencesTests.FindAllReferences_MultipleOpenFiles and ReferencesTests.UnrelatedFiles both fail after that change.

@MikhailArkhipov MikhailArkhipov merged commit 25b4846 into microsoft:master Aug 13, 2019
@MikhailArkhipov MikhailArkhipov deleted the 1231a branch August 15, 2019 17:59
jakebailey pushed a commit to jakebailey/python-language-server that referenced this pull request Nov 1, 2019
)

* Initial

* Update test

* Tell between class members with/without self better

* Move interface

* Fix reference search
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

self. is not required to access class variables inside the class
2 participants