Add support for injecting types into the environment#2811
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit 1b64714 Collapsed results for better readability
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #2811 +/- ##
==========================================
+ Coverage 79.23% 79.26% +0.02%
==========================================
Files 333 333
Lines 78753 78809 +56
==========================================
+ Hits 62401 62469 +68
+ Misses 14042 14033 -9
+ Partials 2310 2307 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
…m lookup in base type activation
|
Realized the type declaration itself is not sufficient for composite types. 957de13 adds support for looking up the injected composite type. This is needed e.g. for transferring values. |
Needed for Flex and #2760
Description
In addition to injecting a value, a host environment may also want to inject additional types.
Add support for declaring a
StandardLibraryTypeinto aruntime.Environment.masterbranchFiles changedin the Github PR explorer