Sha256: 198642d1b959cff763cf293d0cff20f294dbc9dd61d045491733c5a7d9426501
Contents?: true
Size: 686 Bytes
Versions: 3
Compression:
Stored size: 686 Bytes
Contents
"use strict"; exports.__esModule = true; exports["default"] = function (_ref) { var messages = _ref.messages; return { visitor: { Scope: function Scope(_ref2) { var scope = _ref2.scope; for (var _name in scope.bindings) { var binding = scope.bindings[_name]; if (binding.kind !== "const" && binding.kind !== "module") continue; var _arr = binding.constantViolations; for (var _i = 0; _i < _arr.length; _i++) { var violation = _arr[_i]; throw violation.buildCodeFrameError(messages.get("readOnly", _name)); } } } } }; }; module.exports = exports["default"];
Version data entries
3 entries across 3 versions & 1 rubygems