Skip to content

Adjustments for merging of contextual and lexical keywords #62969

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/ASTGen/Sources/ASTGen/Decls.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ extension ASTGenVisitor {

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

// TODO: don't drop "initializer" on the floor.
return .decl(
Expand Down
2 changes: 1 addition & 1 deletion lib/ASTGen/Sources/ASTGen/Literals.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ extension ASTGenVisitor {

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

Expand Down