-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for operation templates and operation signature reuse (#552)
* Add support for operation templates and operation signature reuse * Replace `OperationInstanceNode` with `OperationSignature` types * Add Rush change file * Skip templated operations when scanning for operation routes * Add operation signatures sample * Fix formatter output for templated operation references * Create a scope for operation statements to bind template parameters * Add another operation signature to the signatures sample * Add an example of operation signatures used in a templated interface * Update language grammar specification for new syntax * Format signatures.cadl * Convert `OperationSignature` types to real syntax nodes * Use `expectTokenIsOneOf` * Update `InterfaceMember` in language specification * Use `op is Sig` syntax instead of previous `op: Sig` syntax * Non-working updates to tmLanguage grammar * Nick's suggested changes * Update tmLanguage and tests * Add a tmLanguage test for templated operation signatures * Add Rush change file for vscode extension
- Loading branch information
Showing
20 changed files
with
972 additions
and
291 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
common/changes/@cadl-lang/compiler/operation-templates_2022-05-25-12-20.json
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,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@cadl-lang/compiler", | ||
"comment": "Add support for operation templates and operation signature reuse", | ||
"type": "minor" | ||
} | ||
], | ||
"packageName": "@cadl-lang/compiler" | ||
} |
10 changes: 10 additions & 0 deletions
10
common/changes/@cadl-lang/rest/operation-templates_2022-05-25-13-10.json
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,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@cadl-lang/rest", | ||
"comment": "Skip templated operations when scanning for operation routes", | ||
"type": "patch" | ||
} | ||
], | ||
"packageName": "@cadl-lang/rest" | ||
} |
10 changes: 10 additions & 0 deletions
10
common/changes/cadl-vscode/operation-templates_2022-06-02-16-12.json
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,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "cadl-vscode", | ||
"comment": "Update tmLanguage grammar for operation signature support", | ||
"type": "minor" | ||
} | ||
], | ||
"packageName": "cadl-vscode" | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Oops, something went wrong.