Skip to content

Commit 2cbce17

Browse files
allow 5 variables in HTMLExpansionContext to be publicly mutable (were package(set))
1 parent 80aa781 commit 2cbce17

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Sources/HTMLKitUtilities/HTMLExpansionContext.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ public struct HTMLExpansionContext: @unchecked Sendable {
2727
/// Complete file paths used for looking up interpolation (when trying to promote to an equivalent `StaticString`).
2828
public var lookupFiles:Set<String>
2929

30-
public package(set) var minify:Bool
30+
public var minify:Bool
3131

32-
public package(set) var ignoresCompilerWarnings:Bool
32+
public var ignoresCompilerWarnings:Bool
3333

34-
public package(set) var escape:Bool
35-
public package(set) var escapeAttributes:Bool
36-
public package(set) var elementsRequireEscaping:Bool
34+
public var escape:Bool
35+
public var escapeAttributes:Bool
36+
public var elementsRequireEscaping:Bool
3737

3838
public init(
3939
context: MacroExpansionContext,

Tests/HTMLKitTests/InterpolationTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ extension InterpolationTests {
343343
}
344344

345345
@Test func closureInterpolation() {
346+
// TODO: fix | where are the warning diagnostics?
346347
let bro:String = "bro"
347348
let _:String = #html {
348349
div {

0 commit comments

Comments
 (0)