Skip to content

Commit e2aed1f

Browse files
committed
[Macros] Remove a print statement from findSyntaxNodeInSourceFile.
This code path isn't on an error path, and the print statement causes unnecessary build output, which also causes test failures.
1 parent ab19ad2 commit e2aed1f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: lib/ASTGen/Sources/ASTGen/SourceFile.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,8 @@ public func findSyntaxNodeInSourceFile<Node: SyntaxProtocol>(
287287
}
288288
}
289289

290-
// If we didn't find anything, complain and fail.
290+
// If we didn't find anything, return nil.
291291
guard var resultSyntax else {
292-
print("unable to find node: \(token.debugDescription)")
293292
return nil
294293
}
295294

0 commit comments

Comments
 (0)