[SR-6929] libSyntax: dangling comment is never attached as trivia #49477
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
comments
Feature: comments
compiler
The Swift compiler in itself
† libswiftSyntax
† Area → compiler: the once-integrated C++ Syntax library succeeded by SwiftSyntax
source tooling
Area: IDE support, SourceKit, and other source tooling
stale
Resolution: No longer relevant, stale
unexpected behavior
Bug: Unexpected behavior or incorrect output
Additional Detail from JIRA
md5: d5e209bb6077b1009d0515befc33db24
Issue Description:
If you make a source file that consists only of comments and whitespace, libSyntax doesn't generate any tokens and the content is "lost"
The text was updated successfully, but these errors were encountered: