Commit 5a19857
committed
Reimplement
The compiler's semantics for determining unparsed vs. inactive regions
require looking all the way up the `#if` tree to the root, and the
bottom-up implementation of `isActive(in:)` was failing to match the
semantics of configured regions. Use `ConfiguredRegions` directly, with
a note that the performance of `SyntaxProtocol.isActive(in:)` is not
good.
I'm still considering whether this API should go away entirely.SyntaxProtocol.isActive(in:) in terms of ConfiguredRegions.1 parent 049ed84 commit 5a19857
File tree
2 files changed
+10
-36
lines changed- Sources/SwiftIfConfig
2 files changed
+10
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 47 | + | |
| 48 | + | |
77 | 49 | | |
78 | 50 | | |
79 | 51 | | |
| |||
0 commit comments