Skip to content

Conversation

@akhera99
Copy link
Member

@akhera99 akhera99 commented Dec 4, 2024

Fixes: #69793

@akhera99 akhera99 requested a review from a team as a code owner December 4, 2024 00:44
@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 4, 2024
Comment on lines 284 to 296
var identifierNameSyntax =
syntaxFacts.IsArgument(argument) ? syntaxFacts.GetExpressionOfArgument(argument) :
syntaxFacts.IsAttributeArgument(argument) ? syntaxFacts.GetExpressionOfAttributeArgument(argument) : null;

if (syntaxFacts.IsMemberAccessExpression(identifierNameSyntax))
{
identifierNameSyntax = syntaxFacts.GetNameOfMemberAccessExpression(identifierNameSyntax);
}

if (!syntaxFacts.IsIdentifierName(identifierNameSyntax))
return string.Empty;

var identifier = syntaxFacts.GetIdentifierOfIdentifierName(identifierNameSyntax);
Copy link
Member

Choose a reason for hiding this comment

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

I believe there is a TrGetInferredMemberName you could potentially use. Up to you.

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

Labels

Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead VSCode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parameter name InlineHints should ignore this. and base.

3 participants