Skip to content

Commit

Permalink
Actually use getDecorators...
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Sep 7, 2023
1 parent d6b5f18 commit 2489e11
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/usage/UsageWalker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ import {
RootScope,
} from "./scopes";
import { UsageInfo, UsageInfoCallback } from "./usage";
import { canHaveDecorators, identifierToKeywordKind } from "./utils";
import {
canHaveDecorators,
getDecorators,
identifierToKeywordKind,
} from "./utils";

// TODO class decorators resolve outside of class, element and parameter decorator resolve inside/at the class
// TODO computed property name resolves inside/at the class
Expand Down Expand Up @@ -264,7 +268,7 @@ export class UsageWalker {
varCb: UsageInfoCallback,
) {
if (canHaveDecorators(node)) {
ts.getDecorators(node)?.forEach(cb);
getDecorators(node)?.forEach(cb);
}

const savedScope = this.#scope;
Expand Down

0 comments on commit 2489e11

Please sign in to comment.