File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
- // ===--- Type.h - Swift Language Type ASTs ------------- ---------*- C++ -*-===//
1
+ // ===--- Type.h - Value objects for Swift and SIL types ---------*- C++ -*-===//
2
2
//
3
3
// This source file is part of the Swift.org open source project
4
4
//
10
10
//
11
11
// ===----------------------------------------------------------------------===//
12
12
//
13
- // This file defines the Type class.
13
+ // This file defines the Type and CanType classes, which are value objects
14
+ // used to cheaply pass around different kinds of types. The full hierarchy for
15
+ // Swift and SIL types -- including tuple types, function types and more -- is
16
+ // defined in Types.h.
14
17
//
15
18
// ===----------------------------------------------------------------------===//
16
19
Original file line number Diff line number Diff line change 10
10
//
11
11
// ===----------------------------------------------------------------------===//
12
12
//
13
- // This file defines the TypeBase class and subclasses.
13
+ // This file defines the TypeBase class and subclasses, which describe the Swift
14
+ // and SIL ASTs. See also: Type.h.
14
15
//
15
16
// ===----------------------------------------------------------------------===//
16
17
@@ -282,7 +283,9 @@ enum class TypeMatchFlags {
282
283
};
283
284
using TypeMatchOptions = OptionSet<TypeMatchFlags>;
284
285
285
- // / TypeBase - Base class for all types in Swift.
286
+ // / Base class for all types which describe the Swift and SIL ASTs.
287
+ // /
288
+ // / See TypeNodes.def for a succinct description of the full class hierarchy.
286
289
class alignas (1 << TypeAlignInBits) TypeBase {
287
290
288
291
friend class ASTContext ;
You can’t perform that action at this time.
0 commit comments