Skip to content

Commit

Permalink
fix: method collission
Browse files Browse the repository at this point in the history
  • Loading branch information
Adis Durakovic committed Mar 25, 2024
1 parent d5d11ff commit e1caac4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/parsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,13 +477,12 @@ export class CommentParser {
this.parsedFiles[file] = newdata;
}

// fix for decorators

const comments = extract(newdata);
if (comments.length > 0) {
comments.forEach((comment) => {
if (comment.type !== "BlockComment") return;
let lines = comment.value.split("\n").filter((l) => l != "");
// fix for decorators
if (lines[0].trim() !== "@" + action) return;
lines = lines.filter((l) => l != "");

Expand Down

0 comments on commit e1caac4

Please sign in to comment.