-
Notifications
You must be signed in to change notification settings - Fork 764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nameof function #14704
Nameof function #14704
Conversation
src/Bicep.Core.Samples/Files/baselines/Resources_CRLF/main.json
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #14704 +/- ##
===========================================
- Coverage 94.28% 9.37% -84.91%
===========================================
Files 1113 7 -1106
Lines 100791 288 -100503
Branches 8734 123 -8611
===========================================
- Hits 95028 27 -95001
+ Misses 4595 260 -4335
+ Partials 1168 1 -1167
Flags with carried forward coverage won't be shown. Click here to find out more. |
src/Bicep.Core/TypeSystem/DeployTimeConstantViolationVisitor.cs
Outdated
Show resolved
Hide resolved
@miqm we had a discussion on this yesterday, and I've pushed a few changes to genericize the check under a function flag The final thing we need to close on is whether or not this function should behave like other functions w.r.t inferring dependencies.
For example, the difference between the following is quite subtle: resource b '...' existing = { name: 'b' }
resource a '...' = {
name: 'a'
properties: { foo: nameof(b) }
} and: resource b '...' existing = { name: 'b' }
resource a '...' = {
name: 'a'
properties: { foo: b.name }
} |
Test this change out locally with the following install scripts (Action run 11173492893) VSCode
Azure CLI
|
Fixes #13031
Contributing a Pull Request
If you haven't already, read the full contribution guide. The guide may have changed since the last time you read it, so please double-check. Once you are done and ready to submit your PR, run through the relevant checklist below.
Contributing a feature
Microsoft Reviewers: Open in CodeFlow