mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This commit replaces the `getValue()` and `getValue2()` members on `ConstraintLocator::PathElement` with specific accessors for each expected path component kind. IMO this adds some clarity to the call sites, especially for `getArgIdx()` and `getParamIdx()`. In addition, this commit adds a private `getValue` member that can access a value at a given index, which will make it easier to add a third value in the future.
288 KiB
288 KiB