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.
implements
class
1 parent 3f57a62 commit 97e5e41Copy full SHA for 97e5e41
rocket-chatter-ingestion-server/src/process/prepare/processor/syntax/classes.ts
@@ -29,6 +29,16 @@ export namespace Classes {
29
}
30
31
32
+ // Check for implemented interfaces
33
+ if (n.implements) {
34
+ for (const i of n.implements) {
35
+ node.pushUse({
36
+ name: (i as any).expression.name,
37
+ type: "interface",
38
+ })
39
+ }
40
41
+
42
// Check for external references in any of the methods
43
for (const m of n.body.body) {
44
if (namedTypes.MethodDefinition.check(m)) {
@@ -38,6 +48,9 @@ export namespace Classes {
48
49
50
51
+ // Remove uses that uses the type parameters
52
+ node.uses = node.uses.filter((u) => !typeParameters.includes(u.name))
53
54
return node
55
56
0 commit comments