summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/node/node_modules/@babel/types/lib/validators/isLet.js
blob: 93d75628082195209c21a5c990dfc5357cd250e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = isLet;

var _generated = require("./generated");

var _constants = require("../constants");

function isLet(node) {
  return (0, _generated.isVariableDeclaration)(node) && (node.kind !== "var" || node[_constants.BLOCK_SCOPED_SYMBOL]);
}