Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Definition items #71959

Merged
merged 21 commits into from
Feb 23, 2024
Merged

Definition items #71959

merged 21 commits into from
Feb 23, 2024

Conversation

tmat
Copy link
Member

@tmat tmat commented Feb 5, 2024

[Recommended review strategy is commit by commit.]

First commit refactors DefinitionItem and related types.
Second commit adds nullability annotations.
Third commit adds tests for existing behavior of classified DefinitionItem construction from a symbol.
Further commits replace OriginationParts with MetadataLocations array, which contains displayable information for each metadata assembly the symbol occurs in. DefinitionItem can now have both source spans and metadata locations. This allows us to better represent namespaces that span source and metadata.

The change also improves display of metadata locations in Find Results (outputs of GTD, GTB, GTI and FAR).

Before
image
image

After
image
image

Source namespaces

namespace N
{
    class F
    {
        N.F f;
        global::N.F g;
    }
}

namespace N
{
}

Before:

FAR:
image

GTD:
image

After:

FAR:
image

GTD:
image

Navigation

Fixes navigation for DefinitionItemEntry items representing symbols whose location may not exist on disk.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Feb 5, 2024
@tmat tmat force-pushed the DefinitionItems branch 7 times, most recently from 542aadd to 5e1f707 Compare February 8, 2024 04:45
@tmat tmat marked this pull request as ready for review February 8, 2024 17:59
@tmat tmat requested review from a team as code owners February 8, 2024 17:59
@CyrusNajmabadi
Copy link
Member

Close to signing off. Have a few questions i'd like info on. overall this seems totally ok :)

Copy link
Member

@333fred 333fred left a comment

Choose a reason for hiding this comment

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

Compiler changes LGTM

@sharwell sharwell dismissed their stale review February 23, 2024 17:06

Behavior was updated to improve consistency with prior releases

@tmat tmat merged commit 2f783c6 into dotnet:main Feb 23, 2024
30 checks passed
@tmat tmat deleted the DefinitionItems branch February 23, 2024 18:51
@jjonescz jjonescz added this to the 17.10 P2 milestone Feb 27, 2024
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants