Skip to content

Conversation

@CyrusNajmabadi
Copy link
Member

Fixes #77189

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner February 13, 2025 07:11
@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Feb 13, 2025

var localName = localSymbol.Name;
if (localName == "")
return false;
Copy link
Member Author

Choose a reason for hiding this comment

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

pulled into pattern match above.

foreach (var descendent in statement.DescendantNodesAndSelf())
{
cancellationToken.ThrowIfCancellationRequested();
if (CheckDescendants(localSymbol, semanticModel, statement, cancellationToken, out identifier))
Copy link
Member Author

Choose a reason for hiding this comment

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

extracted into helper. we use it for the field case as well.

testHost,
Namespace("System"),
Namespace("Text"),
Namespace("RegularExpressions"),
Copy link
Member Author

Choose a reason for hiding this comment

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

view with whitespace off.

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.

Could lang=regex syntax handling apply to consts that are later used in a recognized location?

3 participants