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

Fix existing and potentil null references #92

Merged
merged 7 commits into from
Sep 13, 2018
Merged

Fix existing and potentil null references #92

merged 7 commits into from
Sep 13, 2018

Conversation

MikhailArkhipov
Copy link

Basically stems out of #87

  • Remove BasesInternal and use Bases
  • Ditto for Parameters and Decorators
  • Return empty arrays rather than nulls
  • Use MaybeEnumerate where appropriate
  • Add and use ExceptDefault()

@@ -61,25 +63,18 @@ class OutOfProcExtractedMethodCreator {
if (_targetScope is ClassDefinition) {
var fromScope = _scopes[_scopes.Count - 1] as FunctionDefinition;
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe use pattern matching here:

if (_targetScope is ClassDefinition && _scopes[_scopes.Count - 1] is FunctionDefinition fromScope)

@MikhailArkhipov MikhailArkhipov merged commit 406a3a4 into microsoft:master Sep 13, 2018
jakebailey pushed a commit to jakebailey/python-language-server that referenced this pull request Nov 1, 2019
Fix existing and potentil null references
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.

2 participants