Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
mattt edited this page Jan 26, 2020 · 7 revisions

Import

An import declaration.

public struct Import: Declaration, Hashable, Codable

Inheritance

Declaration, Hashable, Codable, CustomStringConvertible, ExpressibleBySyntax

Initializers

init(_:)

Creates an instance initialized with the given syntax node.

public init(_ node: ImportDeclSyntax)

Properties

attributes

The declaration attributes.

let attributes: [Attribute]

modifiers

The declaration modifiers.

let modifiers: [Modifier]

keyword

The import keyword ("import").

let keyword: String

kind

let kind: String?

pathComponents

let pathComponents: [String]

description

var description: String