@@ -23,10 +23,10 @@ public enum SyntaxOrTokenNodeKind: Hashable {
2323
2424/// Extension to the ``Child`` type to provide functionality specific to
2525/// SwiftSyntaxBuilder.
26- public extension Child {
26+ extension Child {
2727 /// The type of this child, represented by a ``SyntaxBuildableType``, which can
2828 /// be used to create the corresponding `Buildable` and `ExpressibleAs` types.
29- var buildableType : SyntaxBuildableType {
29+ public var buildableType : SyntaxBuildableType {
3030 let buildableKind : SyntaxOrTokenNodeKind
3131 switch kind {
3232 case . node( kind: let kind) :
@@ -44,7 +44,7 @@ public extension Child {
4444 )
4545 }
4646
47- var parameterBaseType : TypeSyntax {
47+ public var parameterBaseType : TypeSyntax {
4848 switch kind {
4949 case . nodeChoices:
5050 return self . syntaxChoicesType
@@ -53,11 +53,11 @@ public extension Child {
5353 }
5454 }
5555
56- var parameterType : TypeSyntax {
56+ public var parameterType : TypeSyntax {
5757 return self . buildableType. optionalWrapped ( type: parameterBaseType)
5858 }
5959
60- var defaultValue : ExprSyntax ? {
60+ public var defaultValue : ExprSyntax ? {
6161 if isOptional || isUnexpectedNodes {
6262 if buildableType. isBaseType && kind. isNodeChoicesEmpty {
6363 return ExprSyntax ( " \( buildableType. buildable) .none " )
@@ -85,7 +85,7 @@ public extension Child {
8585 /// If the child node has a default value, return an expression of the form
8686 /// ` = default_value` that can be used as the default value to for a
8787 /// function parameter. Otherwise, return `nil`.
88- var defaultInitialization : InitializerClauseSyntax ? {
88+ public var defaultInitialization : InitializerClauseSyntax ? {
8989 if let defaultValue {
9090 return InitializerClauseSyntax (
9191 equal: . equalToken( leadingTrivia: . space, trailingTrivia: . space) ,
@@ -99,7 +99,7 @@ public extension Child {
9999 /// If this node is a token that can't contain arbitrary text, generate a Swift
100100 /// `precondition` statement that verifies the variable with name var_name and of type
101101 /// ``TokenSyntax`` contains one of the supported text options. Otherwise return `nil`.
102- func generateAssertStmtTextChoices( varName: String ) -> FunctionCallExprSyntax ? {
102+ public func generateAssertStmtTextChoices( varName: String ) -> FunctionCallExprSyntax ? {
103103 guard case . token( choices: let choices, requiresLeadingSpace: _, requiresTrailingSpace: _) = kind else {
104104 return nil
105105 }
0 commit comments