You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 9, 2026. It is now read-only.
Repository navigation
Commit 265ad76
Browse filesBrowse the repository at this point in the historyBrowse files
[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
Copy file name to clipboardExpand all lines: src/Java.Interop.Tools.JavaSource/Java.Interop.Tools.JavaSource/SourceJavadocToXmldocGrammar.BlockTagsBnfTerms.cs
Copy file name to clipboardExpand all lines: src/Java.Interop.Tools.JavaSource/Java.Interop.Tools.JavaSource/SourceJavadocToXmldocGrammar.InlineTagsBnfTerms.cs
<param name=""manifest"">The value of the <see href=""{DocRootPrefixExpected}guide/topics/manifest/manifest-element.html#vcode""><c>android:versionCode</c></see> manifest attribute.</param>
How about another link <see href=""http://man7.org/linux/man-pages/man2/accept.2.html"">accept(2)</see></para>
194
203
</remarks>
204
+
<returns>the return value</returns>
195
205
</member>",
196
206
IntelliSenseXml=$@"<member>
197
207
<param name=""manifest"">The value of the <see href=""{DocRootPrefixExpected}guide/topics/manifest/manifest-element.html#vcode""><c>android:versionCode</c></see> manifest attribute.</param>
0 commit comments