Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Do not report name of param 0 - #1191

Merged
jkotas merged 2 commits into
dotnet:masterfrom
MichalStrehovsky:param0
Apr 24, 2016
Merged

jkotas merged 2 commits into
dotnet:masterfrom
MichalStrehovsky:param0

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

C# compiler only emits those if the return parameter has field marshal
info and it's useless for what we're using it for.

C# compiler only emits those if the return parameter has field marshal
info and it's useless for what we're using it for.
// Parameter with sequence number 0 refers to the return parameter
if (p.SequenceNumber == 0)
continue;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The ECMA spec says that the sequence should be sorted, but it can have holes in it ... so there is a theoretical bug here (cannot think of a compiler that would generate the holes). Maybe add TODO?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Oh, you mean in the pre-existing code? Comment added.

@jkotas

jkotas commented Apr 24, 2016

Copy link
Copy Markdown
Member

LGTM

@jkotas
jkotas merged commit 8407839 into dotnet:master Apr 24, 2016
@MichalStrehovsky
MichalStrehovsky deleted the param0 branch April 25, 2016 16:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants