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

[feature/dataflow] Add support for reading dataflow annotation from JSON - #1060

Merged
MichalStrehovsky merged 5 commits into
dotnet:feature/dataflowfrom
MichalStrehovsky:json
Apr 4, 2020
Merged

MichalStrehovsky merged 5 commits into
dotnet:feature/dataflowfrom
MichalStrehovsky:json

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

This is mostly for testing purposes - allows supplementing the attribute-based annotations with annotations read out of a JSON file.

@MichalStrehovsky MichalStrehovsky changed the title Add support for reading dataflow annotation from JSON [feature/dataflow] Add support for reading dataflow annotation from JSON Apr 3, 2020

var type = assembly.MainModule.GetType (namespaceName, typeName);
if (type == null) {
context.LogMessage ($"Type {namespaceName}.{typeName} couldn't be resolved");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should start using the new LogMessage(MessageContainer.CreateWarningMessage()) - eventually all of linker should switch to that.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We'll need to find some centralized place to keep track of the error codes. I don't think this branch is a good place to introduce such place. It should really be done in master.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

FYI: I'm currently using #986 as an effort to get a starting set of error/warnings so that we can move forward to start using the MessageContainer.

@MichalStrehovsky
MichalStrehovsky merged commit 63b50f2 into dotnet:feature/dataflow Apr 4, 2020
@MichalStrehovsky
MichalStrehovsky deleted the json branch April 4, 2020 09:31
tkapin pushed a commit to tkapin/runtime that referenced this pull request Jan 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants