CommentRemover class

Utility class for removing comments from source code

Constructors

CommentRemover()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

removeComments(String content, CommentStyle style) String
Remove comments based on the comment style
removeDocComments(String content, CommentStyle style) String
Remove only doc comments while preserving regular comments Works for C-style (///) and Python-style (""")