-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Augment decorator issues Fix #4749 Augment/ref alias properties Fix #2867 Augment/ref `model is` properties Fix #4818 Augment/ref nested model properties ### Circular reference issues Fix #4908 freeze when using circular model extends with aliases ### Others FIx #4915 (Duplicate usings not scoped per namespace) Doesn't resolve the alias circular issue #2824 but I think setup the solution for fixing it later in the name resolver where we could detect that cycle instead of the checker --------- Co-authored-by: Brian Terlson <[email protected]>
- Loading branch information
1 parent
49c0527
commit b39abe5
Showing
47 changed files
with
4,604 additions
and
1,592 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking | ||
changeKind: feature | ||
packages: | ||
- "@typespec/compiler" | ||
--- | ||
|
||
Overall of the symbol resolution. TypeSpec is able to resolve anything that can be statically linked. Augment decorators in turn are able to target any statically linkable types. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking | ||
changeKind: internal | ||
packages: | ||
- "@typespec/openapi3" | ||
--- | ||
Fix test host |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,6 +97,7 @@ words: | |
- Jacoco | ||
- jdwp | ||
- jobject | ||
- Johan | ||
- jsyaml | ||
- keyer | ||
- killpg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import type { DecoratorContext, Type } from "../src/index.js"; | ||
|
||
export type GetterDecorator = (context: DecoratorContext, target: Type) => void; | ||
|
||
export type TypeSpecPrototypesDecorators = { | ||
getter: GetterDecorator; | ||
}; |
5 changes: 5 additions & 0 deletions
5
packages/compiler/generated-defs/TypeSpec.Prototypes.ts-test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** An error here would mean that the decorator is not exported or doesn't have the right name. */ | ||
import { $decorators } from "../src/index.js"; | ||
import type { TypeSpecPrototypesDecorators } from "./TypeSpec.Prototypes.js"; | ||
/** An error here would mean that the exported decorator is not using the same signature. Make sure to have export const $decName: DecNameDecorator = (...) => ... */ | ||
const _: TypeSpecPrototypesDecorators = $decorators["TypeSpec.Prototypes"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
namespace TypeSpec.Prototypes; | ||
|
||
extern dec getter(target: unknown); | ||
|
||
namespace Types { | ||
interface ModelProperty { | ||
@getter type(): unknown; | ||
} | ||
|
||
interface Operation { | ||
@getter returnType(): unknown; | ||
@getter parameters(): unknown; | ||
} | ||
|
||
interface Array<TElementType> { | ||
@getter elementType(): TElementType; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.