Skip to content

C#: Add missing toString() relations#2538

Merged
semmle-qlci merged 1 commit into
github:masterfrom
hvitved:csharp/missing-to-string
Dec 17, 2019
Merged

C#: Add missing toString() relations#2538
semmle-qlci merged 1 commit into
github:masterfrom
hvitved:csharp/missing-to-string

Conversation

@hvitved
Copy link
Copy Markdown
Contributor

@hvitved hvitved commented Dec 16, 2019

See #2518.

@hvitved hvitved added the C# label Dec 16, 2019
@hvitved hvitved requested a review from calumgrant December 16, 2019 14:00
@hvitved hvitved requested a review from a team as a code owner December 16, 2019 14:00
@hvitved hvitved force-pushed the csharp/missing-to-string branch from ee2ea91 to f1193d0 Compare December 16, 2019 18:39
Comment thread csharp/ql/src/semmle/code/csharp/exprs/Call.qll
Copy link
Copy Markdown
Contributor

@calumgrant calumgrant left a comment

Choose a reason for hiding this comment

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

A small question but otherwise LGTM

| queries.cs:27:11:27:42 | call to method Join | 2 | queries.cs:27:21:27:25 | access to local variable list1 |
| queries.cs:27:11:27:42 | call to method Join | 3 | queries.cs:27:30:27:33 | access to local variable next |
| queries.cs:27:11:27:42 | call to method Join | 4 | queries.cs:27:42:27:42 | access to local variable c |
| queries.cs:28:11:28:18 | call to method | 0 | queries.cs:27:11:27:42 | call to method Join |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why not call to method Join ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Actually, it is a call to Select that is missing. It appears to be a Roslyn bug: this call always return null for LINQ expressions containing joins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants