Commit 45b9d95
Introduce
An immutable fiddler function is one that doesn't mutate the original
`fdl.Buildable` object that's passed into it and instead returns a new
`fdl.Buildable` built from the original `fdl.Buildable` after applying the
transform `fn`. It is different from a
mutable fiddler function that directly mutates the original `fdl.Buildable`
object. Immutable fiddlers are useful when using various util functions such
as `daglish.MemoizedTraversal.run()` that return a new `fdl.Buildable` object.
PiperOrigin-RevId: 557925124immutable_fiddler as part of new flags API.1 parent b5abdf1 commit 45b9d95
2 files changed
+24
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
84 | 98 | | |
85 | 99 | | |
86 | 100 | | |
| |||
164 | 178 | | |
165 | 179 | | |
166 | 180 | | |
167 | | - | |
168 | | - | |
169 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
170 | 184 | | |
171 | 185 | | |
172 | 186 | | |
| |||
0 commit comments