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

Propagate known parameter types to derived functions #200

Conversation

lostmsu
Copy link
Contributor

@lostmsu lostmsu commented Oct 4, 2018

Adds a set of derived functions to FunctionInfo. Fills the set when DDG encounters a FunctionDefinition.

Whenever a call to some function is analyzed, it looks at the list of derived functions, and passes the call info along to them.

Also added some styles to .editorconfig

Fixes #194 .
Seems to reduce the total number of failing test cases (local run shows 32->29).

I could not understand if I needed to also requeue anything for analysis. Left a comment about it in the code.

The change might be incomplete, as the new code was not added to the case when _callsWithClosure != null in FunctionInfo.Call. I could not quickly understand that code.

@@ -76,3 +76,7 @@ csharp_new_line_before_finally = false
csharp_new_line_before_members_in_anonymous_types = false

csharp_new_line_before_members_in_object_initializers = false

dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_property = false:none

Choose a reason for hiding this comment

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

I'd rather keep these as they were. We are slowly converting code to C# 7+ so we do want to see suggestion/information for => style so we can fix them as we go.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are controlling "this." prefixing, not '=>'. PLS appears to use underscore instead of 'this.' for fields. I don't know what's the guidance for properties.

@MikhailArkhipov
Copy link

I'll merge and fix the editorconfig

@MikhailArkhipov MikhailArkhipov merged commit 62a7e8c into microsoft:master Oct 18, 2018
@lostmsu lostmsu deleted the features/FunctionParameterTypePropagation branch October 18, 2018 18:44
jakebailey pushed a commit to jakebailey/python-language-server that referenced this pull request Nov 1, 2019
…eterTypePropagation

Propagate known parameter types to derived functions
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