MCPcopy
hub / github.com/lebab/lebab / toClassDeclaration

Method toClassDeclaration

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

Source from the content-addressed store, hash-verified

101 }
102
103 toClassDeclaration() {
104 return {
105 type: 'ClassDeclaration',
106 superClass: this.superClass,
107 id: {
108 type: 'Identifier',
109 name: this.name,
110 },
111 body: {
112 type: 'ClassBody',
113 body: this.createMethods()
114 },
115 comments: extractComments(this.commentNodes),
116 };
117 }
118
119 createMethods() {
120 return compact([

Callers 1

transformMethod · 0.95

Calls 2

createMethodsMethod · 0.95
extractCommentsFunction · 0.85

Tested by

no test coverage detected