Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: icsharpcode/ILSpy
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a9572d1677cf66d8ffa3d4124fe298839cb75757
Choose a base ref
..
head repository: icsharpcode/ILSpy
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 711de7a7b3b8eb9eb9ca741606833447217f1fd9
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 ICSharpCode.Decompiler/Output/TextTokenWriter.cs
2 changes: 1 addition & 1 deletion ICSharpCode.Decompiler/Output/TextTokenWriter.cs
Original file line number Diff line number Diff line change
@@ -457,7 +457,7 @@ public static bool IsDefinition(ref AstNode node)
{
if (node is EntityDeclaration && !(node.Parent is LocalFunctionDeclarationStatement))
return true;
if (node is VariableInitializer && node.Parent is FieldDeclaration)
if (node is VariableInitializer && node.Parent is FieldDeclaration or EventDeclaration)
{
node = node.Parent;
return true;