function evaluateBindingName({ node, environment, evaluate, statementTraversalStack, reporting, typescript, logger }, rightHandValue) {
    var _a;
    // If the declaration binds a simple identifier, bind that text to the environment
    if (typescript.isIdentifier(node) || ((_a = typescript.isPrivateIdentifier) === null || _a === void 0 ? void 0 : _a.call(typescript, node))) {
        setInLexicalEnvironment({ env: environment, path: node.text, value: rightHandValue, newBinding: true, reporting, node });
        logger.logBinding(node.text, rightHandValue, "evaluateBindingName");
    }
    else {
        evaluate.nodeWithArgument(node, environment, rightHandValue, statementTraversalStack);
    }
}
/**
 * Evaluates, or attempts to evaluate, a BindingName, based on an initializer
 */
Evaluates, or attempts to evaluate, a BindingName, based on an initializer
Evaluates or attempts to evaluate a BindingName based on an initializer
function evaluateBindingName({ node, environment, evaluate, statementTraversalStack, reporting, typescript, logger }, rightHandValue) {
    var _a;
    if (typescript.isIdentifier(node) || ((_a = typescript.isPrivateIdentifier) === null || _a === void 0 ? void 0 : _a.call(typescript, node))) {
        setInLexicalEnvironment({ env: environment, path: node.text, value: rightHandValue, newBinding: true, reporting, node });
        logger.logBinding(node.text, rightHandValue, "evaluateBindingName");
    }
    else {
        evaluate.nodeWithArgument(node, environment, rightHandValue, statementTraversalStack);
    }
}
function evaluateBindingName ( { node , environment , evaluate , statementTraversalStack , reporting , typescript , logger } , rightHandValue ) { var _a ; if ( typescript . isIdentifier ( node ) || ( ( _a = typescript . isPrivateIdentifier ) === null || _a === void 0 ? void 0 : _a . call ( typescript , node ) ) ) { setInLexicalEnvironment ( { env : environment , path : node . text , value : rightHandValue , newBinding : true , reporting , node } ) ; logger . logBinding ( node . text , rightHandValue , "evaluateBindingName" ) ; } else { evaluate . nodeWithArgument ( node , environment , rightHandValue , statementTraversalStack ) ; } }
Evaluates, or attempts to evaluate, a BindingName, based on an initializer
Evaluates or attempts to evaluate a BindingName based on an initializer
// If the declaration binds a simple identifier, bind that text to the environment