Debian Codegraph @

packages/babel-plugin-proposal-decorators/test/fixtures/2018-09-finishers/class-as-parameter/exec.js

raw symbols SCIP
1 var C;
2
3 function decorator(el) {
4 return Object.assign(el, {
5 finisher(Class) {
6 C = Class;
7 },
8 });
9 }
10
11 class A {
12 @decorator
13 foo() {}
14 }
15
16 expect(C).toBe(A);