Skip to content

[SR-4046] Static Trivia helper methods with a zero-count should return empty Trivia collections #46629

@bitjammer

Description

@bitjammer
Previous ID SR-4046
Radar None
Original Reporter @bitjammer
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, Syntax
Assignee @bitjammer
Priority Medium

md5: dad856bcc46668b92e7e932bcee8caa7

Issue Description:

Trivia::spaces(0) should return the same thing as {}.

  • Add a test for this.

  • Update the README diagram

Metadata

Metadata

Assignees

Labels

bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfunexpected 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