swiftlang / swiftlang/swift-syntax

Converting zero-parameter function to computed property drops comment

Open
#3,236 3 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Swift
Stars
3.7k
Forks
553
Avg merge
5d 13h
Merged PRs (30d)
16

Description

Eg.

```swift
/// Some comment
func foo() -> Int {
1
}
```

gets converted to

```swift
var foo: Void {
1
}
```

The comment should be retained.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.