Skip to content

Commit 597150f

Browse files
committed
Adjustments for merging of contextual and lexical keywords
1 parent 93a0a6d commit 597150f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/ASTGen/Sources/ASTGen/Decls.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ extension ASTGenVisitor {
7575

7676
let loc = self.base.advanced(by: node.position.utf8Offset).raw
7777
let isStateic = false // TODO: compute this
78-
let isLet = node.letOrVarKeyword.tokenKind == .letKeyword
78+
let isLet = node.letOrVarKeyword.tokenKind == .keyword(.let)
7979

8080
// TODO: don't drop "initializer" on the floor.
8181
return .decl(

lib/ASTGen/Sources/ASTGen/Literals.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extension ASTGenVisitor {
2323

2424
public func visit(_ node: BooleanLiteralExprSyntax) -> ASTNode {
2525
let loc = self.base.advanced(by: node.position.utf8Offset).raw
26-
let value = node.booleanLiteral == .trueKeyword()
26+
let value = node.booleanLiteral == .keyword(.true)
2727
return .expr(SwiftBooleanLiteralExpr_create(ctx, value, loc))
2828
}
2929

0 commit comments

Comments
 (0)