Skip to content

Produce binding errors for incomplete members#62874

Draft
Youssef1313 wants to merge 52 commits intodotnet:mainfrom
Youssef1313:issues/7536
Draft

Produce binding errors for incomplete members#62874
Youssef1313 wants to merge 52 commits intodotnet:mainfrom
Youssef1313:issues/7536

Conversation

@Youssef1313
Copy link
Member

@Youssef1313 Youssef1313 commented Jul 22, 2022

@Youssef1313 Youssef1313 requested a review from a team as a code owner July 22, 2022 20:51
@ghost ghost added Area-Compilers Community The pull request was submitted by a contributor who is not a Microsoft employee. labels Jul 22, 2022
@Youssef1313 Youssef1313 marked this pull request as draft July 23, 2022 04:58
@Youssef1313 Youssef1313 force-pushed the issues/7536 branch 5 times, most recently from 0bb0314 to 3686e6b Compare July 23, 2022 08:32
@Youssef1313 Youssef1313 marked this pull request as ready for review July 23, 2022 20:33
@Youssef1313 Youssef1313 requested a review from a team as a code owner July 23, 2022 20:33
@Youssef1313
Copy link
Member Author

Youssef1313 commented Jul 24, 2022

C# changes are ready for review. VB changes are not. Both are ready now :)

@333fred
Copy link
Member

333fred commented Jul 25, 2022

I think we need to wait until @AlekseyTs is back from vacation on this one before proceeding.

IDE change is for `TestAfterRootAttribute` completion tests
@Youssef1313
Copy link
Member Author

@AlekseyTs Could you take a look? (I haven't done work for VB side yet)

Comment on lines +1455 to 1459
#pragma warning disable CS0618 // Type or member is obsolete
case SyntaxKind.IncompleteMember:
#pragma warning restore CS0618 // Type or member is obsolete
// Incomplete members don't declare any symbols.
return null;
Copy link
Member Author

Choose a reason for hiding this comment

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

The only way to reach this is crafting a tree using the obsolete SyntaxFactory.IncompleteMember API. So I kept this as return null.

I think we will want to have a test whose behavior changes depending on the existence of this code path.

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

Labels

Area-Compilers Community The pull request was submitted by a contributor who is not a Microsoft employee.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Have compiler return semantic errors in incomplete members.

3 participants