Skip to content

Commit 15b5820

Browse files
committed
Sema: Split off TypeCheckDeclPrimary.cpp from TypeCheckDecl.cpp
The new file contains the implementation of typeCheckDecl() and various utility functions that it uses. This code runs for declarations in primary files only. TypeCheckDecl.cpp now mostly consists of evaluate() implementations for requests together with some utility functions. A few of the new function prototypes I added to TypeCheckDecl.h are indicative of some code that could be refactored further. Any utility functions shared by both TypeCheckDecl.cpp and TypeCheckDeclPrimary.cpp should be wrapped up in requests in order for the results to be cached.
1 parent ef05acc commit 15b5820

File tree

5 files changed

+2511
-2440
lines changed

5 files changed

+2511
-2440
lines changed

lib/Sema/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ add_swift_host_library(swiftSema STATIC
4646
TypeCheckDecl.cpp
4747
TypeCheckDeclObjC.cpp
4848
TypeCheckDeclOverride.cpp
49+
TypeCheckDeclPrimary.cpp
4950
TypeCheckError.cpp
5051
TypeCheckExpr.cpp
5152
TypeCheckExprObjC.cpp

0 commit comments

Comments
 (0)