Skip to content

[SR-8183] Migrator doesn't add new parameter label in SDK function #50715

Open
@ChristopherRogers

Description

@ChristopherRogers
Previous ID SR-8183
Radar None
Original Reporter @ChristopherRogers
Type Bug
Environment

Xcode 10.0 beta 3 (10L201y)

Additional Detail from JIRA
Votes 0
Component/s Source Tooling
Labels Bug, Migrator
Assignee None
Priority Medium

md5: 8a6b0db753879e4cb795fc0f0f6bc845

Issue Description:

There should be a "otherRange" label added to the second parameter (assuming the changes to the SDK are in fact correct...)

import AVFoundation

func missingArgumentLabel(_ timeRange: CMTimeRange, asset: AVAsset) -> CMTimeRange {
  // Missing argument label 'otherRange:' in call
  // return CMTimeRangeGetIntersection(
  //   timeRange,
  //   CMTimeRange(start: CMTime.zero, duration: asset.duration)
  return CMTimeRangeGetIntersection(
    timeRange,
    CMTimeRange(start: kCMTimeZero, duration: asset.duration))
}

I've attached a sample Xcode project for several issues to SR-8180.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.migrator

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions