forked from Azure/bicep
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add experimental support for aggregate type declarations (Azure#8673)
* Add feature flag for aggregate types * Add new syntax classes for type expressions * Add type expression parsing to TypeManager * Add aggregate type support to TemplateWriter * Add types samples * Improve diagnostic reporting by deferring declared type resolution only when absolutely necessary * Make $ref writing purely syntax driven * Fixup integer and boolean type literal support * Make sure decorators used on types are valid type decorators * Run baselines * Fixup tests * Cleanup parameter type assignment when @Allowed decorator used * Require cursor-based tests to specify the character that represents a cursor position * Fixup LangServer tests * Add rudimentary completions, hovers, and semantic highlighting * Improve cycle detection and reporting for objects * Disallow newlines between union members for now Since there's no terminating character, an incomplete union (`'foo'|`) will treat the start of the next declaration as skipped trivia unless inner union newlines are blocked * Add hover tests * Add type keyword to Textmate grammar * fixup some todos and typos left in PR * Check properties of param default values * Better completions for union types * Show warning when an object with additional properties only accepts them as a fallback * Raise an error diagnostic on user-defined types whose name masks an ambient type * Update diagnostic messages for clarity * Update Highlight.js and Monarch grammars + baselines * Rename types vnext feature to 'UserDefinedTypes' * Update grammar to include user-defined types * Add types flag to bicepconfig schema * Rename DeclaredTypeSymbol to TypeAliasSymbol * Block types named 'resource' and update associated diagnostic message * Check for nested type errors in TypeAssignmentVisitor, not in SemanticValidationVisitor * Remove recursion guard from SymbolVisitor * Cleanup and consolidate per PR feedback * Fix test
- Loading branch information
Showing
121 changed files
with
5,921 additions
and
671 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
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
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.