summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/sourcemapped/output/rollup/typescript-classes.js.map
blob: 9934d26f5a7718fd58bce4669455445335da0140 (plain)
1
{"version":3,"file":"typescript-classes.js","sources":["rollup://./typescript-classes/src/mod.ts","rollup://./typescript-classes/input.ts"],"sourcesContent":["\nexport function decoratorFactory(opts: { selector: string }) {\n  return function decorator(target) {\n    return <any>target;\n  };\n}\n\nexport default function def() {}\n","// This file essentially reproduces an example Angular component to map testing,\n// among other typescript edge cases.\n\nimport def, { decoratorFactory } from './src/mod.ts';\n\nimport * as ns from './src/mod.ts';\n\n@decoratorFactory({\n  selector: 'app-root',\n})\nexport class AppComponent {\n  title = 'app';\n}\n\nconst fn = arg => {\n  console.log(\"here\");\n};\nfn(\"arg\");\n\n// Un-decorated exported classes present a mapping challege because\n// the class name is mapped to an unhelpful export assignment.\nexport class ExportedOther {\n  title = 'app';\n}\n\nclass AnotherThing {\n  prop = 4;\n}\n\nconst ExpressionClass = class Foo {\n  prop = 4;\n};\n\nclass SubDecl extends AnotherThing {\n  prop = 4;\n}\n\nlet SubVar = class SubExpr extends AnotherThing {\n  prop = 4;\n};\n\nns;\n\nexport default function(){\n  // This file is specifically for testing the mappings of classes and things\n  // above, which means we don't want to include _other_ references to then.\n  // To avoid having them be optimized out, we include a no-op eval.\n  eval(\"\");\n\n  console.log(\"pause here\");\n}\n"],"names":["tslib_1.__extends"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BACiC,IAA0B;QACzD,OAAO,mBAAmB,MAAM;YAC9B,OAAY,MAAM,CAAC;SACpB,CAAC;IACJ,CAAC;;ICLD;AACA,IASA;QAHA;YAIE,UAAK,GAAG,KAAK,CAAC;SACf;QAFY,YAAY;YAHxB,gBAAgB,CAAC;gBAChB,QAAQ,EAAE,UAAU;aACrB,CAAC;WACW,YAAY,CAExB;QAAD,mBAAC;KAFD,IAEC;IAED,IAAM,EAAE,GAAG,UAAA,GAAG;QACZ,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC,CAAC;IACF,EAAE,CAAC,KAAK,CAAC,CAAC;AAEV,IAMA;QAAA;YACE,SAAI,GAAG,CAAC,CAAC;SACV;QAAD,mBAAC;IAAD,CAAC,IAAA;AAED,IAIA;QAAsBA,2BAAY;QAAlC;YAAA,qEAEC;YADC,UAAI,GAAG,CAAC,CAAC;;SACV;QAAD,cAAC;IAAD,CAFA,CAAsB,YAAY,GAEjC;IAED,IAAI,MAAM;QAAyBA,2BAAY;QAAlC;YAAA,qEAEZ;YADC,UAAI,GAAG,CAAC,CAAC;;SACV;QAAD,cAAC;IAAD,CAAC,CAFkC,YAAY,EAE9C,CAAC;AAEF;;;;QAME,IAAI,CAAC,EAAE,CAAC,CAAC;QAET,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAC5B,CAAC;;;;;;;;"}