CodeQL library for Python
codeql/python-all 0.11.13 (changelog, source)
Search

Class Comment

A source code comment

Import path

import python

Direct supertypes

Known direct subtypes

Predicates

getContents

Gets the contents of the comment excluding the leading ‘#’

getFollowing

Gets this immediately following comment. Blanks line are allowed between this comment and the following comment, but code or other comments are not.

getLocation
getText

Gets the full text of the comment including the leading ‘#’

toString

Gets a textual representation of this element.