-
Notifications
You must be signed in to change notification settings - Fork 762
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch to using FunctionFlags and TypeSymbolValidationFlags
- Loading branch information
Showing
15 changed files
with
180 additions
and
98 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,58 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
using System; | ||
|
||
namespace Bicep.Core.TypeSystem | ||
{ | ||
/// <summary> | ||
/// Flags that may be placed on functions to modify their behavior. | ||
/// </summary> | ||
[Flags] | ||
public enum FunctionFlags | ||
{ | ||
/// <summary> | ||
/// The default, no restrictions | ||
/// </summary> | ||
Default = 0, | ||
|
||
/// <summary> | ||
/// The function can only be used in parameter default values. | ||
/// </summary> | ||
ParamDefaultsOnly = 1 << 0, | ||
|
||
/// <summary> | ||
/// The function requires inlining. | ||
/// </summary> | ||
RequiresInlining = 1 << 1, | ||
|
||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
using System; | ||
|
||
namespace Bicep.Core.TypeSystem | ||
{ | ||
/// <summary> | ||
/// Flags that may be placed on functions to modify their behavior. | ||
/// </summary> | ||
[Flags] | ||
public enum FunctionFlags | ||
{ | ||
/// <summary> | ||
/// The default, no restrictions | ||
/// </summary> | ||
Default = 0, | ||
|
||
/// <summary> | ||
/// The function can only be used in parameter default values. | ||
/// </summary> | ||
ParamDefaultsOnly = 1 << 0, | ||
|
||
/// <summary> | ||
/// The function requires inlining. | ||
/// </summary> | ||
RequiresInlining = 1 << 1, | ||
|
||
/// <summary> | ||
/// The function can be used as a parameter decorator. | ||
/// </summary> | ||
ParameterDecorator = 1 << 2, | ||
|
||
/// <summary> | ||
/// The function can be used as a parameter decorator. | ||
/// </summary> | ||
VariableDecorator = 1 << 3, | ||
|
||
/// </summary> | ||
ParameterDecorator = 1 << 2, | ||
|
||
/// <summary> | ||
/// The function can be used as a parameter decorator. | ||
/// </summary> | ||
VariableDecorator = 1 << 3, | ||
|
||
/// <summary> | ||
/// The function can be used as a resource decorator. | ||
/// </summary> | ||
ResoureDecorator = 1 << 4, | ||
|
||
/// <summary> | ||
/// The function can be used as a module decorator. | ||
/// </summary> | ||
ModuleDecorator = 1 << 5, | ||
|
||
/// </summary> | ||
ResoureDecorator = 1 << 4, | ||
|
||
/// <summary> | ||
/// The function can be used as a module decorator. | ||
/// </summary> | ||
ModuleDecorator = 1 << 5, | ||
|
||
/// <summary> | ||
/// The function can be used as an output decorator. | ||
/// </summary> | ||
OutputDecorator = 1 << 6, | ||
} | ||
} | ||
/// </summary> | ||
OutputDecorator = 1 << 6, | ||
|
||
/// <summary> | ||
/// The function can be used as input for module parameter only. | ||
/// </summary> | ||
ModuleParamsAssignmentOnly = 1 << 7, | ||
} | ||
} |
8 changes: 2 additions & 6 deletions
8
src/Bicep.Core/TypeSystem/SecretType.cs → ...TypeSystem/KeyVaultSecretReferenceType.cs
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.