Skip to content

Commit 9b270dc

Browse files
committed
Merge branch 'main' into v5
2 parents 834f329 + 73f4ad4 commit 9b270dc

6 files changed

Lines changed: 11 additions & 14 deletions

File tree

Sources/LeafKit/LeafCache/DefaultLeafCache.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import NIOConcurrencyHelpers
2-
import NIOCore
32

43
public actor DefaultLeafCache: LeafCache {
54
// MARK: - Public - `LeafCache` Protocol Conformance

Sources/LeafKit/LeafSyntax/LeafSyntax.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ public enum ConditionalSyntax: Sendable {
2727
case `if`([ParameterDeclaration])
2828
case `elseif`([ParameterDeclaration])
2929
case `else`
30-
3130
func imports() -> Set<String> {
3231
switch self {
3332
case .if(let pDA), .elseif(let pDA):
@@ -715,17 +714,18 @@ extension Syntax: CustomStringConvertible {
715714
print(depth: 0)
716715
}
717716

717+
// swift-format-ignore
718718
func print(depth: Int) -> String {
719719
switch self {
720720
case .expression(let exp): return indent(depth) + "expression\(exp.description)"
721-
// case .variable(let v): return v.print(depth: depth)
722-
case .custom(let custom): return custom.print(depth: depth)
723-
case .conditional(let c): return c.print(depth: depth)
724-
case .loop(let loop): return loop.print(depth: depth)
725-
case .import(let imp): return imp.print(depth: depth)
726-
case .extend(let ext): return ext.print(depth: depth)
727-
case .export(let export): return export.print(depth: depth)
728-
case .with(let with): return with.print(depth: depth)
721+
// case .variable(let v): return v.print(depth: depth)
722+
case .custom(let custom): return custom.print(depth: depth)
723+
case .conditional(let c): return c.print(depth: depth)
724+
case .loop(let loop): return loop.print(depth: depth)
725+
case .import(let imp): return imp.print(depth: depth)
726+
case .extend(let ext): return ext.print(depth: depth)
727+
case .export(let export): return export.print(depth: depth)
728+
case .with(let with): return with.print(depth: depth)
729729
case .raw(var bB):
730730
let string = bB.readString(length: bB.readableBytes) ?? ""
731731
return indent(depth) + "raw(\(string.debugDescription))"

Tests/LeafKitTests/LeafErrorTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/// Place all tests related to verifying that errors ARE thrown here.
22

33
import Testing
4+
import XCTest
45

56
@testable import LeafKit
67

Tests/LeafKitTests/LeafSerializerTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Testing
2+
import XCTest
23

34
@testable import LeafKit
45

Tests/LeafKitTests/TagTests.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import Foundation
22
import Testing
33

4-
@testable import LeafKit
5-
64
@Suite
75
struct TagTests {
86
@Test func testWithHTMLEntities() throws {

Tests/LeafKitTests/TestHelpers.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import XCTest
77

88
/// Assorted multi-purpose helper pieces for LeafKit tests
99

10-
// MARK: - Helper Functions
11-
1210
/// Directly run a String "template" through `LeafLexer`
1311
/// - Parameter str: Raw String holding Leaf template source data
1412
/// - Returns: A lexed array of LeafTokens

0 commit comments

Comments
 (0)