We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getcalledparameter
1 parent 16e85f9 commit b66195fCopy full SHA for b66195f
src/parameters.jl
@@ -33,7 +33,12 @@ end
33
34
function getcalledparameter(x)
35
x = unwrap(x)
36
- return getmetadata(x, CallWithParent)
+ # `parent` is a `CallWithMetadata` with the correct metadata,
37
+ # but no namespacing. `operation(x)` has the correct namespacing,
38
+ # but is not a `CallWithMetadata` and doesn't have any metadata.
39
+ # This approach combines both.
40
+ parent = getmetadata(x, CallWithParent)
41
+ return CallWithMetadata(operation(x), metadata(parent))
42
end
43
44
"""
0 commit comments