-
Notifications
You must be signed in to change notification settings - Fork 859
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added delegate to resolve a cref in TripleSlashCommentModel.
- Introduced ResolveCRef delegate in ITripleSlashCommentParserContext. - It is called when a cref attribute from an XML comment is to be resolved. - The delegate returns the name of a reference to the appropriate target. - Necessary for F# support, since the F# compiler does not resolve the cref attribute to comment ids in triple slash comments. - Introduced call to ResolveCrefLink for exceptions, since they need to be resolved as well.
- Loading branch information
Showing
5 changed files
with
91 additions
and
25 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
src/Microsoft.DocAsCode.Metadata.ManagedReference.Common/Parsers/CRefTarget.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace Microsoft.DocAsCode.Metadata.ManagedReference | ||
{ | ||
public class CRefTarget | ||
{ | ||
public string Id { get; set; } | ||
public string CommentId { get; set; } | ||
} | ||
} |
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