mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
[PR #526] [MERGED] Complete nullable annotations #1087
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/xoofx/markdig/pull/526
Author: @iamcarbon
Created: 3/11/2021
Status: ✅ Merged
Merged: 3/11/2021
Merged by: @xoofx
Base:
master← Head:nullability2📝 Commits (4)
4009c89Enable nullable at project level and add remaining nullable annotations9d36a74Replace == null with is nulleedbb49Revert accidental readonly removal6b9433cRemove temporary #nullable enable directives📊 Changes
140 files changed (+205 additions, -400 deletions)
View changed files
📝
src/Markdig/Extensions/Abbreviations/Abbreviation.cs(+2 -2)📝
src/Markdig/Extensions/Abbreviations/AbbreviationHelper.cs(+0 -2)📝
src/Markdig/Extensions/Abbreviations/AbbreviationInline.cs(+1 -8)📝
src/Markdig/Extensions/Abbreviations/AbbreviationParser.cs(+3 -5)📝
src/Markdig/Extensions/AutoIdentifiers/AutoIdentifierExtension.cs(+2 -5)📝
src/Markdig/Extensions/AutoIdentifiers/HeadingLinkReferenceDefinition.cs(+5 -0)📝
src/Markdig/Extensions/AutoLinks/AutoLinkExtension.cs(+1 -1)📝
src/Markdig/Extensions/AutoLinks/AutoLinkParser.cs(+1 -1)📝
src/Markdig/Extensions/Citations/CitationExtension.cs(+2 -2)📝
src/Markdig/Extensions/CustomContainers/CustomContainer.cs(+0 -2)📝
src/Markdig/Extensions/DefinitionLists/DefinitionListParser.cs(+2 -4)📝
src/Markdig/Extensions/DefinitionLists/HtmlDefinitionListRenderer.cs(+1 -1)📝
src/Markdig/Extensions/Diagrams/DiagramExtension.cs(+1 -1)📝
src/Markdig/Extensions/Emoji/EmojiInline.cs(+1 -1)📝
src/Markdig/Extensions/Emoji/EmojiMapping.cs(+2 -4)📝
src/Markdig/Extensions/EmphasisExtras/EmphasisExtraExtension.cs(+1 -1)📝
src/Markdig/Extensions/Footnotes/Footnote.cs(+1 -1)📝
src/Markdig/Extensions/Footnotes/FootnoteLink.cs(+5 -0)📝
src/Markdig/Extensions/Footnotes/FootnoteLinkReferenceDefinition.cs(+5 -0)📝
src/Markdig/Extensions/Footnotes/FootnoteParser.cs(+4 -8)...and 80 more files
📄 Description
This PR completes the nullability annotations and enables nullable at the project level.
There are 4 possibility breaking changes introduced to enforce initialization of non-nullable properties to the following classes.
HeadingLinkReferenceDefinition
FootnoteLink
FootnoteLinkReference
HtmlInline
While these classes have to be constructed with a non-null object, they remain fully mutable after construction to allow the DOM to be manipulated.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.