You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
424 B
JavaScript
22 lines
424 B
JavaScript
"use strict";
|
|
|
|
const nixTypes = require("./_nix-types");
|
|
|
|
module.exports = {
|
|
name: "let-in",
|
|
visitors: {
|
|
NixLetIn: (node) => {
|
|
return nixTypes.NixAttributeSelection(
|
|
nixTypes.NixAttributeSet([
|
|
... node.bind,
|
|
nixTypes.NixBinding(
|
|
[ nixTypes.NixAttributeIdentifier("$$jsNix$letBody") ],
|
|
node.body
|
|
)
|
|
], true),
|
|
[ nixTypes.NixAttributeIdentifier("$$jsNix$letBody") ]
|
|
);
|
|
}
|
|
}
|
|
};
|