IdentifierDeclaration
public enum IdentifierDeclaration : Hashable
An identifier declaration.
-
Parameter declaration with a name token.
Declaration
Swift
case parameter(name: TokenSyntax) -
Local variable declaration with a name token.
Declaration
Swift
case localVariable(name: TokenSyntax) -
A variable that is implicitly added by the compiler (e.g.
errorincatchclauses).Declaration
Swift
case implicitVariable(name: String) -
A variable hidden from scope because its name is a wildcard
_.Declaration
Swift
case wildcard -
Special case that marks a type boundary at which name lookup stops.
Declaration
Swift
case lookupBoundary -
Check whether self declares a variable given by name.
Declaration
Swift
public func declares(id: String, disregardBackticks: Bool = true) -> BoolParameters
idName of the variable.
disregardBackticksIf
true, normalize all names before comparison by removing all backticks. This is the default since backticks only disambiguate, but don’t contribute to name resolution.
View on GitHub
Install in Dash