Structure
Import
public struct Import: Declaration, Hashable, Codable
An import declaration.
Relationships
Conforms To
Declaration
A Swift declaration.
ExpressibleBySyntax
A type that can be initialized with a Swift syntax node.
Codable
CustomStringConvertible
Hashable
Initializers
init(_:)
public init(_ node: ImportDeclSyntax)
Creates an instance initialized with the given syntax node.
Properties
keyword
let keyword: String
The import keyword ("import"
).
kind
let kind: String?
pathComponents
let pathComponents: [String]
description
var description: String