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

Import

An import declaration.

public struct Import:​ Declaration, Hashable, Codable

Inheritance

Codable, CustomStringConvertible, Declaration, ExpressibleBySyntax, Hashable

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
Clone this wiki locally