Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,790 changes: 1,908 additions & 1,882 deletions src/Bicep.Core.Samples/Files/baselines/Functions/sys.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ func buildUrlMultiLine(
hostname string,
path string
) string => '${https ? 'https' : 'http'}://${hostname}${empty(path) ? '' : '/${path}'}'

output likeExactMatch bool =like('abc', 'abc')
output likeWildCardMatch bool= like ('abcdef', 'a*c*')
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ func buildUrlMultiLine(
path string
) string => '${https ? 'https' : 'http'}://${hostname}${empty(path) ? '' : '/${path}'}'

output likeExactMatch bool =like('abc', 'abc')
output likeWildCardMatch bool= like ('abcdef', 'a*c*')

Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ func b(longParameterName1 string, longParameterName2 string, longParameterName3

func buildUrlMultiLine(https bool, hostname string, path string) string =>
'${https ? 'https' : 'http'}://${hostname}${empty(path) ? '' : '/${path}'}'

output likeExactMatch bool = like('abc', 'abc')
output likeWildCardMatch bool = like('abcdef', 'a*c*')
21 changes: 17 additions & 4 deletions src/Bicep.Core.Samples/Files/baselines/Functions_LF/main.ir.bicep
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
func buildUrl(https bool, hostname string, path string) string => '${https ? 'https' : 'http'}://${hostname}${empty(path) ? '' : '/${path}'}'
//@[000:1461) ProgramExpression
//@[000:1564) ProgramExpression
//@[000:0141) ├─DeclaredFunctionExpression { Name = buildUrl }
//@[013:0141) | └─LambdaExpression
//@[020:0024) | ├─AmbientTypeReferenceExpression { Name = bool }
Expand Down Expand Up @@ -116,9 +116,9 @@ func fooTest() array => map(barTest(), a => 'Hello ${a}!')
//@[015:0020) | └─AmbientTypeReferenceExpression { Name = array }

output fooValue array = fooTest()
//@[000:0033) ─DeclaredOutputExpression { Name = fooValue }
//@[016:0021) ├─AmbientTypeReferenceExpression { Name = array }
//@[024:0033) └─UserDefinedFunctionCallExpression { Name = fooTest }
//@[000:0033) ─DeclaredOutputExpression { Name = fooValue }
//@[016:0021) | ├─AmbientTypeReferenceExpression { Name = array }
//@[024:0033) | └─UserDefinedFunctionCallExpression { Name = fooTest }

func test() object => loadJsonContent('./repro-data.json')
//@[000:0058) ├─DeclaredFunctionExpression { Name = test }
Expand Down Expand Up @@ -180,3 +180,16 @@ func buildUrlMultiLine(
//@[079:0083) | | └─LambdaVariableReferenceExpression { Variable = path }
//@[002:0008) | └─AmbientTypeReferenceExpression { Name = string }

output likeExactMatch bool =like('abc', 'abc')
//@[000:0046) ├─DeclaredOutputExpression { Name = likeExactMatch }
//@[022:0026) | ├─AmbientTypeReferenceExpression { Name = bool }
//@[028:0046) | └─FunctionCallExpression { Name = like }
//@[033:0038) | ├─StringLiteralExpression { Value = abc }
//@[040:0045) | └─StringLiteralExpression { Value = abc }
output likeWildCardMatch bool= like ('abcdef', 'a*c*')
//@[000:0054) └─DeclaredOutputExpression { Name = likeWildCardMatch }
//@[025:0029) ├─AmbientTypeReferenceExpression { Name = bool }
//@[031:0054) └─FunctionCallExpression { Name = like }
//@[037:0045) ├─StringLiteralExpression { Value = abcdef }
//@[047:0053) └─StringLiteralExpression { Value = a*c* }

Loading