microsoft / microsoft/typespec

Directives should be allowed inline

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

Description

Right now suppress needs to be on its own line, it would be nice to be able to target every nodes in the syntax tree. Otherwise we are unable to suppress everything

```tsp
model Foo {

name: string;

nested: #suppress("no-nullable" "We do actually need no nullable for this nested props") {
prop1: string | null;
prop2: string | null;
}
}

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.