Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jeskew committed Mar 5, 2024
1 parent 7711169 commit e02cbc9
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -57,6 +57,7 @@ public IEnumerable<FunctionOverload> GetResourceFunctionOverloads(Azure.Bicep.Ty
}

private TypeSymbol GetTypeSymbol(Azure.Bicep.Types.Concrete.TypeBase serializedType, bool isResourceBodyType, bool isResourceBodyTopLevelPropertyType)
// The cache key should always include *all* arguments passed to this function
=> typeCache.GetOrAdd((serializedType, isResourceBodyType, isResourceBodyTopLevelPropertyType),
t => ToTypeSymbol(t.definedType, t.isResourceBodyType, t.isResourceBodyTopLevelPropertyType));

Expand Down

0 comments on commit e02cbc9

Please sign in to comment.