Skip to content

Commit d0339c2

Browse files
author
Harlan
authored
Add contextual_keyword and string_interpolation_anchor to SwiftSyntax (#13321)
1 parent bae62d7 commit d0339c2

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

test/SwiftSyntax/ParseFile.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ import SwiftSyntax
99

1010
var ParseFile = TestSuite("ParseFile")
1111

12+
struct Foo {
13+
public let x: Int
14+
private(set) var y: [Bool]
15+
}
16+
1217
ParseFile.test("ParseSingleFile") {
1318
let currentFile = URL(fileURLWithPath: #file)
1419
expectDoesNotThrow({

utils/gyb_syntax_support/Token.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ def __init__(self, name, text):
137137
Token('IntegerLiteral', 'integer_literal'),
138138
Token('FloatingLiteral', 'floating_literal'),
139139
Token('StringLiteral', 'string_literal'),
140+
Token('StringInterpolationAnchor', 'string_interpolation_anchor'),
141+
Token('ContextualKeyword', 'contextual_keyword'),
140142
]
141143

142144
SYNTAX_TOKEN_MAP = {token.name + 'Token': token for token in SYNTAX_TOKENS}

0 commit comments

Comments
 (0)