in Sources/SwiftSyntaxBuilder/gyb_helpers/SyntaxBuildableWrappers.py [0:0]
def default_initialization(self):
"""
If the type has a default value (because it is optional or because it is a token with a fixed text), return an expression of the form ` = default_value` that can be used as the default value to for a function parameter.
Otherwise, return an empty string.
"""
if self.is_optional:
return ' = nil'
elif self.is_token():
token = self.token()
if token and token.text:
return ' = TokenSyntax.`%s`' % lowercase_first_word(token.name)
else:
return ''
else:
return ''