|
|
|
@ -76,9 +76,9 @@ let trivial = {
|
|
|
|
|
return types.binaryExpression(node.operator, node.left, node.right);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
NixWithExpression: (node, { defer, setContext, getContext }) => {
|
|
|
|
|
NixWithExpression: (node, { defer, setContext, getContextOptional }) => {
|
|
|
|
|
// TODO: Can we optimize for the fast case (no nested `with`) by referencing the source attrset directly?
|
|
|
|
|
let parentContext = getContext("implicitContext");
|
|
|
|
|
let parentContext = getContextOptional("implicitContext");
|
|
|
|
|
let hasParent = (parentContext != null);
|
|
|
|
|
|
|
|
|
|
let contextName = `$implicit${implicitContextCounter++}`;
|
|
|
|
|