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

Class Raw::MacroRole

INTERNAL: Do not use. The role of a macro, for example #freestanding(declaration) or @attached(member).

Import path

import codeql.swift.generated.Raw

Direct supertypes

Indirect supertypes

Predicates

getConformance

Gets the indexth conformance of this macro role (0-based).

getKind

Gets the kind of this macro role (declaration, expression, member, etc.).

getMacroSyntax

Gets the #freestanding or @attached.

getName

Gets the indexth name of this macro role (0-based).

getNumberOfConformances

Gets the number of conformances of this macro role.

getNumberOfNames

Gets the number of names of this macro role.

toString

Inherited predicates

getLocation

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

from Locatable
isUnknown

Holds if this element is unknown.

from Element