Module Comments

Provides classes for working with JavaScript comments.

Import path

import semmle.javascript.Comments

Imports

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Classes

BlockComment

A block comment (which may be a JSDoc comment).

Comment

A JavaScript source-code comment.

DocComment

A JSDoc comment.

HtmlCommentEnd

An HTML comment end token interpreted as a line comment.

HtmlCommentStart

An HTML comment start token interpreted as a line comment.

HtmlLineComment

An HTML comment start/end token interpreted as a line comment.

LineComment

A line comment, that is, either an HTML comment or a // comment.

SlashSlashComment

A // comment.

SlashStarComment

A C-style block comment which is not a JSDoc comment.