Skip to content

[SR-6929] libSyntax: dangling comment is never attached as trivia #49477

@dabrahams

Description

@dabrahams
Previous ID SR-6929
Radar None
Original Reporter @dabrahams
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Source Tooling
Labels Bug, Syntax
Assignee None
Priority Medium

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.commentsFeature: commentscompilerThe Swift compiler itselfsource toolingArea: IDE support, SourceKit, and other source toolingstaleResolution: No longer relevant, staleunexpected behaviorBug: Unexpected behavior or incorrect output† libswiftSyntaxArchive • Area → compiler: the once-integrated C++ Syntax library succeeded by SwiftSyntax

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions