Skip to content

Commit 5debb92

Browse files
committed
Rename StringInterpolationSegments to StringLiteralSegments
1 parent 6069814 commit 5debb92

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/Parse/ParseExpr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2075,7 +2075,7 @@ ParserResult<Expr> Parser::parseExprStringLiteral() {
20752075

20762076
// Collect all string segments.
20772077
SyntaxParsingContext SegmentsCtx(SyntaxContext,
2078-
SyntaxKind::StringInterpolationSegments);
2078+
SyntaxKind::StringLiteralSegments);
20792079
Status = parseStringSegments(Segments, EntireTok, InterpolationVar,
20802080
Stmts, LiteralCapacity, InterpolationCount);
20812081

utils/gyb_syntax_support/ExprNodes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
Node('DictionaryElementList', kind='SyntaxCollection',
2929
element='DictionaryElement'),
3030

31-
Node('StringInterpolationSegments', kind='SyntaxCollection',
31+
Node('StringLiteralSegments', kind='SyntaxCollection',
3232
element='Syntax', element_name='Segment',
3333
element_choices=['StringSegment', 'ExpressionSegment']),
3434

@@ -483,7 +483,7 @@
483483
'StringQuoteToken',
484484
'MultilineStringQuoteToken',
485485
]),
486-
Child('Segments', kind='StringInterpolationSegments',
486+
Child('Segments', kind='StringLiteralSegments',
487487
collection_element_name='Segment'),
488488
Child('CloseQuote', kind='Token',
489489
token_choices=[

utils/gyb_syntax_support/NodeSerializationCodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
'TupleElementList': 165,
171171
'ArrayElementList': 166,
172172
'DictionaryElementList': 167,
173-
'StringInterpolationSegments': 168,
173+
'StringLiteralSegments': 168,
174174
'DeclNameArgumentList': 169,
175175
'ExprList': 170,
176176
'ClosureCaptureItemList': 171,

0 commit comments

Comments
 (0)