Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Fix an issue where the start and end tokens for the copyright are the… #276

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,17 @@ private static bool TryGetStartAndEndOfXmlHeader(SyntaxTriviaList triviaList, ou
foreach (var trivia in triviaList)
{
if (!hasStart && IsBeginningOfXmlHeader(trivia, out start))
{
hasStart = true;
continue; // we need to continue because start and end can be the same token
}


if (!hasEnd && IsEndOfXmlHeader(trivia, out end))
{
hasEnd = true;
continue; // we need to continue because start and end can be the same token
}
}

return hasStart && hasEnd;
Expand Down