Skip to content

Problem parsing generic function parameters when function split over multiple lines #896

Closed
@mwoollard

Description

@mwoollard

When documenting the following definition the following is parsed fine:

public protocol VehiclePositionManager {
    func positions(for region: Observable<LocationRegion?>, stopId: String?, routeIds: [String]?) -> Observable<[VehiclePositionType]>
    
}

jazzy1

But if the function is broken over several lines it gets truncated in the docs:

public protocol VehiclePositionManager {
    func positions(for region: Observable<LocationRegion?>,
                   stopId: String?, 
                   routeIds: [String]?) -> Observable<[VehiclePositionType]>
}

jazzy2

This problem doesn't appear to happen if the function parameters don't include any generic definitions.

Thanks
Mark

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions