From 1f5edb7ba1b2c79911771108346c9a0cb5fb5f07 Mon Sep 17 00:00:00 2001 From: Staffan Gustafsson Date: Fri, 20 Nov 2020 00:23:26 +0100 Subject: [PATCH 1/2] Enable nullable: System.Management.Automation.Interpreter.IInstructionProvider --- .../engine/interpreter/Instruction.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/System.Management.Automation/engine/interpreter/Instruction.cs b/src/System.Management.Automation/engine/interpreter/Instruction.cs index 0a46fd88dfa..3e4b450390a 100644 --- a/src/System.Management.Automation/engine/interpreter/Instruction.cs +++ b/src/System.Management.Automation/engine/interpreter/Instruction.cs @@ -17,11 +17,15 @@ namespace System.Management.Automation.Interpreter { +#nullable enable + internal interface IInstructionProvider { void AddInstructions(LightCompiler compiler); } +#nullable restore + internal abstract class Instruction { public const int UnknownInstrIndex = int.MaxValue; From 667992934e12e4119f85470424ce7f3f8393193c Mon Sep 17 00:00:00 2001 From: Staffan Gustafsson Date: Fri, 20 Nov 2020 18:55:57 +0100 Subject: [PATCH 2/2] Removing whitespace before/after nullable pragma --- .../engine/interpreter/Instruction.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/System.Management.Automation/engine/interpreter/Instruction.cs b/src/System.Management.Automation/engine/interpreter/Instruction.cs index 3e4b450390a..f1d8edaeb87 100644 --- a/src/System.Management.Automation/engine/interpreter/Instruction.cs +++ b/src/System.Management.Automation/engine/interpreter/Instruction.cs @@ -18,12 +18,10 @@ namespace System.Management.Automation.Interpreter { #nullable enable - internal interface IInstructionProvider { void AddInstructions(LightCompiler compiler); } - #nullable restore internal abstract class Instruction