Skip to content

Commit 8ee97e1

Browse files
committed
[reference-bindings] Updates to ASTGen for swift-syntax changes
1 parent 45edfc3 commit 8ee97e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ASTGen/Sources/ASTGen/Decls.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ extension ASTGenVisitor {
7474
let initializer = visit(node.bindings.first!.initializer!).rawValue
7575

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

8080
// TODO: don't drop "initializer" on the floor.
8181
return .decl(
8282
SwiftVarDecl_create(
83-
ctx, pattern, initializer, loc, isStateic,
83+
ctx, pattern, initializer, loc, isStatic,
8484
isLet, declContext))
8585
}
8686

0 commit comments

Comments
 (0)