CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.12 (changelog, source)
Search

Class SourceMappingComment

A source mapping comment associating a source map with a file.

Import path

import semmle.javascript.SourceMaps

Direct supertypes

Indirect supertypes

Fields

url

The url is a sourceMappingURL embedded in this comment.

Predicates

getSourceMappingURL

DEPRECATED: Alias for getSourceMappingUrl

getSourceMappingUrl

Gets the URL of the source map referenced by this comment.

Inherited predicates

getAPrimaryQlClass

Gets the primary QL class for the Locatable.

from Locatable
getEndLine

Gets the line on which this element ends.

from Locatable
getFile

Gets the file this program element comes from.

from Locatable
getLine

Gets the ith line of comment text.

from Comment
getLocation

Gets this element’s location.

from Comment
getNextToken

Gets the next token after this comment.

from Comment
getNumLines

Gets the number of lines covered by this element.

from Comment
getPrimaryQlClasses

Gets a comma-separated list of the names of the primary CodeQL classes to which this element belongs.

from Locatable
getStartLine

Gets the line on which this element starts.

from Locatable
getText

Gets the text of this comment, not including delimiters.

from Comment
getTopLevel

Gets the toplevel element this comment belongs to.

from Comment
onLines

Holds if this comment spans lines start to end (inclusive) in file f.

from Comment
toString

Gets a textual representation of this element.

from Comment

Charpred