Skip to content

Commit

Permalink
feat: Prevent wrapping of existing macro template documentation comments
Browse files Browse the repository at this point in the history
  • Loading branch information
naipaka committed Dec 11, 2024
1 parent e7dbe49 commit 6326111
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ class WrapWithMacroTemplateDocumentComment extends DartAssist {
return;
}

final currentComment = node.tokens.join();
if (currentComment.contains('{@template') &&
currentComment.contains('{@endtemplate}')) {
return;
}

if (!node.isDocumentation) {
return;
}
Expand Down

0 comments on commit 6326111

Please sign in to comment.