feat: Working on node builder
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
public struct Group: NodeRepresentable {
|
||||
@usableFromInline
|
||||
let node: any NodeRepresentable
|
||||
@@ -25,10 +24,10 @@ public struct Group: NodeRepresentable {
|
||||
|
||||
@inlinable
|
||||
public init(
|
||||
separator: AnyNode = Space().eraseToAnyNode(),
|
||||
separator: String = " ",
|
||||
@NodeBuilder _ build: () -> any NodeRepresentable
|
||||
) {
|
||||
self.init(separator: separator, node: build())
|
||||
self.init(separator: separator.eraseToAnyNode(), node: build())
|
||||
}
|
||||
|
||||
@inlinable
|
||||
|
||||
Reference in New Issue
Block a user