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

Class Error

An error reported by the Go frontend during extraction.

Import path

import semmle.go.Errors

Direct supertypes

Known direct subtypes

Predicates

getFile

Gets the file in which this error was reported, if it can be determined.

getIndex

Gets the index of this error among all errors reported for the same package.

getMessage

Gets the message associated with this error.

getPackage

Gets the package in which this error was reported.

getRawPosition

Gets the raw position reported by the frontend for this error.

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.

toString

Gets a textual representation of this error.