-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Java.Interop.Tools.JavaSource] Fix tag parsing errors (#997)
Improve tag parsing by adding grammar rules for `@hide`, `@inheritDoc`, and `{@see}`. The new grammar rules are not complete, but these new grammar rules, along with improvements to existing rules, reduces the number of `## Unable to translate remarks for …` errors from 740 to 391, nearly in half. The rules for `@param`, `@return`, `@throws`, and `@unknown` have been updated to handle more variations of these tags. In some cases, these tags are only followed by a single word or no content at all. New line character filters and tab have been added to `nonSpaceTerm` to fix instances where an "empty" tag would be merged with the tag on the following line. See [`Android.Database.DatabaseUtils.GetCollationKey(String)`][0] as an example. Before `nonSpaceTerm` change: <param name="name">To be added.</param> <param name="name
@return
@return">the collation key</param> <summary>return the collation key</summary> <returns>To be added.</returns> After `nonSpaceTerm` change: <param name="name">name</param> <summary>return the collation key</summary> <returns>the collation key</returns> [0]: https://github.com/xamarin/android-api-docs/blob/a7e914965a0e80c9454149399551d87a18997b2e/docs/Mono.Android/en/Android.Database/DatabaseUtils.xml#L1505-L1508
- Loading branch information
Showing
6 changed files
with
115 additions
and
15 deletions.
There are no files selected for viewing
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
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
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