@@ -59,21 +59,21 @@ let swiftSettings: [SwiftSetting] = [
5959 // Warn unsafe reflection
6060 . enableExperimentalFeature( " WarnUnsafeReflection " ) ,
6161
62- // // Enhanced compiler checking
63- // .unsafeFlags([
64- // // Enable concurrency warnings
65- // "-warn-concurrency",
66- // // Enable actor data race checks
67- // "-enable-actor-data-race-checks",
68- // // Complete strict concurrency checking
69- // "-strict-concurrency=complete",
70- // // Enable testing support
71- // "-enable-testing",
72- // // Warn about functions with >100 lines
73- // "-Xfrontend", "-warn-long-function-bodies=100",
74- // // Warn about slow type checking expressions
75- // "-Xfrontend", "-warn-long-expression-type-checking=100"
76- // ])
62+ // Enhanced compiler checking
63+ . unsafeFlags( [
64+ // Enable concurrency warnings
65+ " -warn-concurrency " ,
66+ // Enable actor data race checks
67+ " -enable-actor-data-race-checks " ,
68+ // Complete strict concurrency checking
69+ " -strict-concurrency=complete " ,
70+ // Enable testing support
71+ " -enable-testing " ,
72+ // Warn about functions with >100 lines
73+ " -Xfrontend " , " -warn-long-function-bodies=100 " ,
74+ // Warn about slow type checking expressions
75+ " -Xfrontend " , " -warn-long-expression-type-checking=100 "
76+ ] )
7777]
7878
7979// swiftlint:disable:next explicit_top_level_acl explicit_acl
@@ -110,6 +110,25 @@ let package = Package(
110110 ] ,
111111 swiftSettings: swiftSettings
112112 ) ,
113+ . target(
114+ name: " TokenVisitor " ,
115+ dependencies: [
116+ . product( name: " SwiftSyntax " , package : " swift-syntax " ) ,
117+ . product( name: " SwiftOperators " , package : " swift-syntax " ) ,
118+ . product( name: " SwiftParser " , package : " swift-syntax " )
119+ ] ,
120+ swiftSettings: swiftSettings
121+ ) ,
122+ . target(
123+ name: " SyntaxParser " ,
124+ dependencies: [
125+ " TokenVisitor " ,
126+ . product( name: " SwiftSyntax " , package : " swift-syntax " ) ,
127+ . product( name: " SwiftOperators " , package : " swift-syntax " ) ,
128+ . product( name: " SwiftParser " , package : " swift-syntax " )
129+ ] ,
130+ swiftSettings: swiftSettings
131+ ) ,
113132 . target(
114133 name: " DocumentationHarness " ,
115134 dependencies: [
@@ -121,7 +140,7 @@ let package = Package(
121140 ) ,
122141 . executableTarget(
123142 name: " skit " ,
124- dependencies: [ " SyntaxKit " ] ,
143+ dependencies: [ " SyntaxParser " ] ,
125144 swiftSettings: swiftSettings
126145 ) ,
127146 . testTarget(
0 commit comments