File tree Expand file tree Collapse file tree 3 files changed +41
-15
lines changed Expand file tree Collapse file tree 3 files changed +41
-15
lines changed Original file line number Diff line number Diff line change @@ -1457,21 +1457,6 @@ class GenericContext : private _GenericContext, public DeclContext {
1457
1457
static_assert (sizeof (_GenericContext) + sizeof (DeclContext) ==
1458
1458
sizeof (GenericContext), " Please add fields to _GenericContext" );
1459
1459
1460
- // / Describes what kind of name is being imported.
1461
- // /
1462
- // / If the enumerators here are changed, make sure to update all diagnostics
1463
- // / using ImportKind as a select index.
1464
- enum class ImportKind : uint8_t {
1465
- Module = 0 ,
1466
- Type,
1467
- Struct,
1468
- Class,
1469
- Enum,
1470
- Protocol,
1471
- Var,
1472
- Func
1473
- };
1474
-
1475
1460
// / ImportDecl - This represents a single import declaration, e.g.:
1476
1461
// / import Swift
1477
1462
// / import typealias Swift.Int
Original file line number Diff line number Diff line change
1
+ // ===-- Import.h - Representation of imports --------------------*- C++ -*-===//
2
+ //
3
+ // This source file is part of the Swift.org open source project
4
+ //
5
+ // Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
6
+ // Licensed under Apache License v2.0 with Runtime Library Exception
7
+ //
8
+ // See https://swift.org/LICENSE.txt for license information
9
+ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10
+ //
11
+ // ===----------------------------------------------------------------------===//
12
+ // /
13
+ // / \file
14
+ // / This file contains types used to represent information about imports
15
+ // / throughout the AST.
16
+ // /
17
+ // ===----------------------------------------------------------------------===//
18
+
19
+ #ifndef SWIFT_IMPORT_H
20
+ #define SWIFT_IMPORT_H
21
+
22
+ namespace swift {
23
+ // / Describes what kind of name is being imported.
24
+ // /
25
+ // / If the enumerators here are changed, make sure to update all diagnostics
26
+ // / using ImportKind as a select index.
27
+ enum class ImportKind : uint8_t {
28
+ Module = 0 ,
29
+ Type,
30
+ Struct,
31
+ Class,
32
+ Enum,
33
+ Protocol,
34
+ Var,
35
+ Func
36
+ };
37
+
38
+ }
39
+
40
+ #endif
Original file line number Diff line number Diff line change 20
20
#include " swift/AST/Decl.h"
21
21
#include " swift/AST/DeclContext.h"
22
22
#include " swift/AST/Identifier.h"
23
+ #include " swift/AST/Import.h"
23
24
#include " swift/AST/LookupKinds.h"
24
25
#include " swift/AST/RawComment.h"
25
26
#include " swift/AST/Type.h"
You can’t perform that action at this time.
0 commit comments