Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Make prefix and postfix operator implementations appear in the documentation. #262

Merged
merged 2 commits into from
Apr 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Fixed bug that caused prefix and postfix operators to be omitted
from generated documentation.
#262 by @Lukas-Stuehrk.

## [1.0.0-beta.6] - 2021-04-24

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ struct OperatorImplementations: Component {

heading = [lhs.type, function.name, rhs.type].compactMap { $0 }.joined(separator: " ")
case .prefix:
guard function.signature.input.count == 2,
guard function.signature.input.count == 1,
let operand = function.signature.input.first
else {
return nil
}
heading = [function.name, operand.type].compactMap { $0 }.joined(separator: " ")

case .postfix:
guard function.signature.input.count == 2,
guard function.signature.input.count == 1,
let operand = function.signature.input.first
else {
return nil
Expand Down