%PDF- %PDF-
Direktori : /usr/share/nodejs/acorn-private-methods/dist/ |
Current File : //usr/share/nodejs/acorn-private-methods/dist/acorn-private-methods.mjs.map |
{"version":3,"file":"acorn-private-methods.mjs","sources":["../index.js"],"sourcesContent":["// eslint-disable-next-line node/no-unsupported-features/es-syntax\nimport privateClassElements from \"acorn-private-class-elements\"\n\n// eslint-disable-next-line node/no-unsupported-features/es-syntax\nexport default function privateMethods(Parser) {\n const ExtendedParser = privateClassElements(Parser)\n\n return class extends ExtendedParser {\n // Parse private methods\n parseClassElement(_constructorAllowsSuper) {\n const oldInClassMemberName = this._inClassMemberName\n this._inClassMemberName = true\n const result = super.parseClassElement.apply(this, arguments)\n this._inClassMemberName = oldInClassMemberName\n return result\n }\n\n parsePropertyName(prop) {\n const isPrivate = this.options.ecmaVersion >= 8 && this._inClassMemberName && this.type == this.privateIdentifierToken && !prop.static\n this._inClassMemberName = false\n if (!isPrivate) return super.parsePropertyName(prop)\n return this.parsePrivateClassElementName(prop)\n }\n }\n}\n"],"names":[],"mappings":";;AAAA;AAEA;AACA;AACe,SAAS,cAAc,CAAC,MAAM,EAAE;AAC/C,EAAE,MAAM,cAAc,GAAG,oBAAoB,CAAC,MAAM,EAAC;AACrD;AACA,EAAE,OAAO,cAAc,cAAc,CAAC;AACtC;AACA,IAAI,iBAAiB,CAAC,uBAAuB,EAAE;AAC/C,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,mBAAkB;AAC1D,MAAM,IAAI,CAAC,kBAAkB,GAAG,KAAI;AACpC,MAAM,MAAM,MAAM,GAAG,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,EAAC;AACnE,MAAM,IAAI,CAAC,kBAAkB,GAAG,qBAAoB;AACpD,MAAM,OAAO,MAAM;AACnB,KAAK;AACL;AACA,IAAI,iBAAiB,CAAC,IAAI,EAAE;AAC5B,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,CAAC,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,sBAAsB,IAAI,CAAC,IAAI,CAAC,OAAM;AAC5I,MAAM,IAAI,CAAC,kBAAkB,GAAG,MAAK;AACrC,MAAM,IAAI,CAAC,SAAS,EAAE,OAAO,KAAK,CAAC,iBAAiB,CAAC,IAAI,CAAC;AAC1D,MAAM,OAAO,IAAI,CAAC,4BAA4B,CAAC,IAAI,CAAC;AACpD,KAAK;AACL,GAAG;AACH;;;;"}