File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
lib/ASTGen/Sources/ASTGen Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ extension ASTGenVisitor {
75
75
76
76
let loc = self . base. advanced ( by: node. position. utf8Offset) . raw
77
77
let isStateic = false // TODO: compute this
78
- let isLet = node. letOrVarKeyword. tokenKind == . letKeyword
78
+ let isLet = node. letOrVarKeyword. tokenKind == . keyword ( . let )
79
79
80
80
// TODO: don't drop "initializer" on the floor.
81
81
return . decl(
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ extension ASTGenVisitor {
23
23
24
24
public func visit( _ node: BooleanLiteralExprSyntax ) -> ASTNode {
25
25
let loc = self . base. advanced ( by: node. position. utf8Offset) . raw
26
- let value = node. booleanLiteral == . trueKeyword ( )
26
+ let value = node. booleanLiteral == . keyword ( . true )
27
27
return . expr( SwiftBooleanLiteralExpr_create ( ctx, value, loc) )
28
28
}
29
29
You can’t perform that action at this time.
0 commit comments