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

Class RepositoryInfo

A representation of repository information for an NPM package.

Import path

import javascript

Direct supertypes

Indirect supertypes

Predicates

getType

Gets the repository type.

getUrl

Gets the repository URL.

Inherited predicates

getAPrimaryQlClass

Gets the primary QL class for the Locatable.

from JsonObject
getBooleanValue

If this is a boolean constant, gets its boolean value.

from JsonValue
getChild

Gets the ith child value of this value.

from JsonValue
getElementValue

If this is an array, gets the value of the ith element.

from JsonValue
getEndLine

Gets the line on which this element ends.

from Locatable
getFile

Gets the file this program element comes from.

from Locatable
getIntValue

If this is an integer constant, gets its numeric value.

from JsonValue
getJsonFile

Gets the JSON file containing this value.

from JsonValue
getLocation

Gets this element’s location.

from Locatable
getNumLines

Gets the number of lines covered by this element.

from Locatable
getParent

Gets the parent value to which this value belongs, if any.

from JsonValue
getPrimaryQlClasses

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

from Locatable
getPropStringValue

Gets the string value of property name of this object.

from JsonObject
getPropValue

If this is an object, gets the value of property name.

from JsonValue
getStartLine

Gets the line on which this element starts.

from Locatable
getStringValue

If this is a string constant, gets the value of the string.

from JsonValue
isTopLevel

Holds if this JSON value is the top level element in its enclosing file.

from JsonValue
toString

Gets a textual representation of this element.

from JsonValue

Charpred