-
Notifications
You must be signed in to change notification settings - Fork 334
Open
Labels
compiler:coreIssues for @typespec/compilerIssues for @typespec/compilerdesign:neededA design request has been raised that needs a proposalA design request has been raised that needs a proposaltriaged:core
Milestone
Description
Clear and concise description of the problem
There is some decorators what would want to get the original value non marshalled(like the @example decorator).
There is a few options:
- add a
getRawArg(index: number): Entityon theDecoratorContext. - Problem is you cannot call then a decorator withcontext.call()that depend on this. - Add a
$example.disableArgMarshalling- Problem is thattspdthen cannot generate the right signature for this decorator as it won't know about this flag. - Add a modifier on the decorator declaration
extern raw dec example(target, value: valueof unknown)
Checklist
- Follow our Code of Conduct
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
compiler:coreIssues for @typespec/compilerIssues for @typespec/compilerdesign:neededA design request has been raised that needs a proposalA design request has been raised that needs a proposaltriaged:core