-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support disambiguating links with type signature information (#643)
* Experimental support for disambiguating links with type signatures rdar://112224233 * Add a more robust parser for type signature disambiguation in the link * Support function signature disambiguation for external links * Fix parsing of subtract operators with parameter type disambiguation * Only use hash and kind disambiguation in topic references and URLs * Display function signature in PathHierarchy debug dump * Update tests for subscripts with type signature disambiguation * Improve presentation of solutions for ambiguous links on command line * Update tests to expect the added space in the warning summary * Extract the full type from the function signature for disambiguation * Update new code to account for C++ operator parsing logic * Handle disambiguation in error messages more consistently. Also, format the error message better in single-line presentation * Fix new bug where overload groups prevent type disambiguation for one of the overloaded symbols Also, improve paths for overload groups and other preferred symbols * Add convenience accessors for inspecting node's special behaviors * Extract private `onlyIndex(where:)` utility * Remove accidental print statement * Reimplement private `typesMatch` helper using `allSatisfy` * Fix typo and missing info in implementation code comment. * Create an empty substring using the standard initializer * Extract common code for disambiguating by type signature * Change `typeSpellings(for:)` to specify _included_ token kinds * Add examples of disambiguation string in code comment * Avoid creating disambiguation string to find `Disambiguation.none`
- Loading branch information
1 parent
02346ee
commit f8d16c5
Showing
23 changed files
with
1,708 additions
and
327 deletions.
There are no files selected for viewing
182 changes: 153 additions & 29 deletions
182
Sources/SwiftDocC/Infrastructure/Link Resolution/PathHierarchy+DisambiguatedPaths.swift
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.