Skip to content

Commit caa7c91

Browse files
committed
Remove SyntaxProtocol.isActive(in:)
This operation needs to go to the top of the tree to construct a `ConfiguredRegions` instance before evaluation, making it a performance trap if called on many nodes. Eliminate it so folks need to form the `ConfiguredRegions` themselves, which can then be queried efficiently.
1 parent d5a56fa commit caa7c91

File tree

2 files changed

+0
-51
lines changed

2 files changed

+0
-51
lines changed

Sources/SwiftIfConfig/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ add_swift_syntax_library(SwiftIfConfig
1717
IfConfigEvaluation.swift
1818
IfConfigFunctions.swift
1919
SyntaxLiteralUtils.swift
20-
SyntaxProtocol+IfConfig.swift
2120
VersionTuple+Parsing.swift
2221
VersionTuple.swift
2322
)

Sources/SwiftIfConfig/SyntaxProtocol+IfConfig.swift

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)