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

Fix handling of nested TypeReference records - #918

Merged
MichalStrehovsky merged 1 commit into
dotnet:masterfrom
MichalStrehovsky:nestedReferences
Feb 25, 2016
Merged

MichalStrehovsky merged 1 commit into
dotnet:masterfrom
MichalStrehovsky:nestedReferences

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

If we have type X that is nested under type Y and:

  • Y generates full metadata, and
  • X doesn't generate metadata, but we need a TypeReference to it (e.g.
    to support DeveloperExperience metadata for MissingMetadataExceptions)

The transform was attempting to set the TypeDefinition as the
ParentNamespaceOrType of the reference. This is not allowed as per the
metadata format. We need to generate a TypeReference for the owning
type.

If we have type X that is nested under type Y and:
- Y generates full metadata, and
- X doesn't generate metadata, but we need a TypeReference to it (e.g.
to support DeveloperExperience metadata for MissingMetadataExceptions)

The transform was attempting to set the TypeDefinition as the
ParentNamespaceOrType of the reference. This is not allowed as per the
metadata format. We need to generate a TypeReference for the owning
type.
@jkotas

jkotas commented Feb 22, 2016

Copy link
Copy Markdown
Member

@trylek PTLA

@MichalStrehovsky MichalStrehovsky mentioned this pull request Feb 23, 2016
3 tasks done
MichalStrehovsky added a commit that referenced this pull request Feb 25, 2016
Fix handling of nested TypeReference records
@MichalStrehovsky
MichalStrehovsky merged commit 8f5490c into dotnet:master Feb 25, 2016
@MichalStrehovsky
MichalStrehovsky deleted the nestedReferences branch February 25, 2016 08:14
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