Skip to content

Commit fd9fa72

Browse files
committed
[CS] NFC: Rename CSClosure.cpp -> CSSyntacticElement.cpp
We want to generalize this conjunction logic to not just be applicable to closures, so rename the file to match.
1 parent f588672 commit fd9fa72

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/Sema/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ add_swift_host_library(swiftSema STATIC
33
BuilderTransform.cpp
44
CSApply.cpp
55
CSBindings.cpp
6-
CSClosure.cpp
6+
CSSyntacticElement.cpp
77
CSGen.cpp
88
CSRanking.cpp
99
CSSimplify.cpp

lib/Sema/CSClosure.cpp renamed to lib/Sema/CSSyntacticElement.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
//===--- CSClosure.cpp - Closures -----------------------------------------===//
1+
//===--- CSSyntacticElement.cpp - Syntactic Element Constraints -----------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//
5-
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2014 - 2022 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See https://swift.org/LICENSE.txt for license information
99
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1010
//
1111
//===----------------------------------------------------------------------===//
1212
//
13-
// This file implements constraint generation and solution application for
14-
// closures. It provides part of the implementation of the ConstraintSystem
15-
// class.
13+
// This file implements SyntacticElement constraint generation and solution
14+
// application, which is used to type-check the bodies of closures. It provides
15+
// part of the implementation of the ConstraintSystem class.
1616
//
1717
//===----------------------------------------------------------------------===//
1818

0 commit comments

Comments
 (0)