CodeQL library for Swift
codeql/swift-all 6.2.1-dev (changelog, source)
Search

Class Impl::UnspecifiedElement

Import path

import codeql.swift.elements.internal.UnspecifiedElementImpl

Direct supertypes

Indirect supertypes

Predicates

getLocation

Gets the location associated with this element in the code, if it exists.

toStringImpl

INTERNAL: Do not use.

Inherited predicates

getAChild

Gets any of the children of this unspecified element.

from UnspecifiedElement
getAPrimaryQlClass

Gets the name of a primary CodeQL class to which this element belongs.

from UnspecifiedElement
getChild

Gets the indexth child of this unspecified element (0-based).

from UnspecifiedElement
getError

Gets the error of this unspecified element.

from UnspecifiedElement
getFile

Gets the primary file where this element occurs.

from Locatable
getFullyUnresolvedfrom Element
getImmediateChild

Gets the indexth child of this unspecified element (0-based).

from UnspecifiedElement
getImmediateParent

Gets the parent of this unspecified element, if it exists.

from UnspecifiedElement
getIndex

Gets the index of this unspecified element, if it exists.

from UnspecifiedElement
getNumberOfChildren

Gets the number of children of this unspecified element.

from UnspecifiedElement
getParent

Gets the parent of this unspecified element, if it exists.

from UnspecifiedElement
getPrimaryQlClasses

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

from Element
getProperty

Gets the property of this unspecified element.

from UnspecifiedElement
getResolveStep

Gets the most immediate element that should substitute this element in the explicit AST, if any. Classes can override this to indicate this node should be in the “hidden” AST, mostly reserved for conversions and syntactic sugar nodes like parentheses.

from Element
hasIndex

Holds if getIndex() exists.

from UnspecifiedElement
hasLocation

Holds if getLocation() exists.

from Locatable
hasParent

Holds if getParent() exists.

from UnspecifiedElement
isUnknown

Holds if this element is unknown.

from Element
resolve

Gets the element that should substitute this element in the explicit AST, applying getResolveStep transitively.

from Element
toString

Gets the string representation of this element.

from Element