MCPcopy Index your code
hub / github.com/lebab/lebab / createMethods

Method createMethods

src/transform/class/PotentialClass.js:119–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117 }
118
119 createMethods() {
120 return compact([
121 this.createConstructor(),
122 ...this.methods.map(method => {
123 method.setSuperClass(this.superClass);
124 return method.toMethodDefinition();
125 })
126 ]);
127 }
128
129 createConstructor() {
130 return this.constructor.isEmpty() ? undefined : this.constructor.toMethodDefinition();

Callers 1

toClassDeclarationMethod · 0.95

Calls 3

createConstructorMethod · 0.95
toMethodDefinitionMethod · 0.80
setSuperClassMethod · 0.45

Tested by

no test coverage detected