microsoft / microsoft/typespec

Synthetic type context

Open
#7,070 0 comments 0 reactions 0 assignees View on GitHub
compiler:core design:needed triaged:core
Dominant language
Java
Stars
5.9k
Forks
394
Avg merge
1d 23h
Merged PRs (30d)
104

Description

Any types created dynamically like using create typekit or converting from a different type like `enum.createFromUnion` will not have a node attached to it and so a way to provide a diagnostic target.

When creating the type however you might have some additional context that might be usefull to diagnsotics down the line. Like that type was built from value on another type and so reporting the diagnostics on the original types might be a good place.

- `enum.createFromUnion` Would make sense to report the diagnostics on the original union
- `union.createFromEnum` Would make sense to report the diagnostic on the original enum

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.