CodeQL library for Go
codeql/go-all 0.7.15-dev (changelog, source)
Search

Class HTML::CommentNode

An HTML comment.

Example:

<!-- this is a comment -->

Import path

import semmle.go.HTML

Direct supertypes

Indirect supertypes

Predicates

getParent

Gets the element in which this comment occurs.

getText

Gets the text of this comment, not including delimiters.

toString

Gets a textual representation of this element.

Inherited predicates

getFile

Gets the file this program element comes from.

from Locatable
getLocation

Gets this element’s location.

from Locatable
getNumLines

Gets the number of lines covered by this element.

from Locatable
hasLocationInfo

Holds if this element is at the specified location. The location spans column startcolumn of line startline to column endcolumn of line endline in file filepath. For more information, see Locations.

from Locatable

Charpred