We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98130d6 commit 42fcde9Copy full SHA for 42fcde9
rocket-chatter-ingestion-server/src/process/prepare/processor/syntax/classes.ts
@@ -1,11 +1,18 @@
1
import { namedTypes } from "ast-types"
2
+
3
+import { print } from "recast"
4
import { TreeNode } from "../core/treeNode"
5
import { TypeArgument } from "../core/typeArgument"
6
import { Functions } from "./functions"
7
8
export namespace Classes {
9
export function Handle(n: namedTypes.ClassDeclaration) {
- const node = new TreeNode(n.id?.name.toString() ?? "", "Class", "", "")
10
+ const node = new TreeNode(
11
+ n.id?.name.toString() ?? "",
12
+ "Class",
13
+ n.body.body.map((e) => print(e).code).join("\n"),
14
+ ""
15
+ )
16
17
// Check for type parameters
18
const typeParameters: string[] = []
0 commit comments