Skip to content

Commit ba77a58

Browse files
committed
[SwiftSyntax] Remove default empty string in Token's text
swiftlang/swift-syntax#341
1 parent 5b8714e commit ba77a58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/gyb_syntax_support/Token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __init__(self, name, kind, serialization_code, unprefixed_kind=None,
1818
else:
1919
self.unprefixed_kind = unprefixed_kind
2020
self.serialization_code = serialization_code
21-
self.text = text or ""
21+
self.text = text
2222
self.classification = classification_by_name(classification)
2323
self.is_keyword = is_keyword
2424
self.requires_leading_space = requires_leading_space

0 commit comments

Comments
 (0)