struct
CommentHandlerA handler for a specific kind of directive embedded in comments in the user source text.
Public types
- enum Kind { Protect, TranslateOff, LintOn, LintOff, LintSave, LintRestore }
- The kind of directive this handler is for.
Public variables
- Kind kind
- The kind of comment handler this is.
-
std::
string_view endRegion - For region handler, the text that marks the end of the region.
Enum documentation
enum slang:: parsing:: CommentHandler:: Kind
The kind of directive this handler is for.
Enumerators | |
---|---|
Protect |
A region that should be skipped (as if it were a pragma protect region). |
TranslateOff |
A region that should be skipped (as if it were commented out). |
LintOn |
Turns linting on for one or more warnings. |
LintOff |
Turns linting off for one or more warnings. |
LintSave |
Saves the current lint state in a stack. |
LintRestore |
Restore a previously set lint state. |