Skip to content

Commit e2bc9d3

Browse files
committed
Fix a mistake in fba7bc7
1 parent fba7bc7 commit e2bc9d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftGodotMacroLibrary/MacroGodot.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ class GodotMacroProcessor {
268268
// If the first one is an MemberAccessExprSyntax, it is not a labeled expression, so in that case, we have a
269269
// hint, and in that case, the second can be a hint
270270
let hintExpr = labeledExpressionList?.first?.expression.as(MemberAccessExprSyntax.self)?.declName
271-
let hintStrExpr = hintExpr == nil ? nil : labeledExpressionList?.dropFirst().first?.expression.as(MemberAccessExprSyntax.self)?.declName
271+
let hintStrExpr = hintExpr == nil ? nil : labeledExpressionList?.dropFirst().first
272272

273273
let usageExpr = labeledExpressionList?.first(where: { ($0 as? LabeledExprSyntax)?.label?.description == "usage"})
274274

0 commit comments

Comments
 (0)