From 30f26b4c5416d99cfb00de98996d910915b39925 Mon Sep 17 00:00:00 2001 From: Staffan Gustafsson Date: Thu, 19 Nov 2020 23:41:43 +0100 Subject: [PATCH 1/4] Enable nullable: System.Management.Automation.Language.IAstPostVisitHandler --- .../engine/parser/PreOrderVisitor.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs b/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs index 0bf5368fddb..7b82b12fd3a 100644 --- a/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs +++ b/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs @@ -250,6 +250,8 @@ public abstract class AstVisitor2 : AstVisitor public virtual AstVisitAction VisitPipelineChain(PipelineChainAst statementChain) => DefaultVisit(statementChain); } +#nullable enable + /// /// Implement this interface when you implement or when /// you want to do something after possibly visiting the children of the ast. From d36d1020b04455f9ce06d171fd8be6ad07e5f120 Mon Sep 17 00:00:00 2001 From: Staffan Gustafsson Date: Fri, 20 Nov 2020 18:52:39 +0100 Subject: [PATCH 2/4] Removing whitespace before/after nullable pragma --- .../engine/parser/PreOrderVisitor.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs b/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs index 7b82b12fd3a..890d0d50fcf 100644 --- a/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs +++ b/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs @@ -251,7 +251,6 @@ public abstract class AstVisitor2 : AstVisitor } #nullable enable - /// /// Implement this interface when you implement or when /// you want to do something after possibly visiting the children of the ast. From 934de9c56cf51a5e5ab9e37df958e01bf95d5164 Mon Sep 17 00:00:00 2001 From: Staffan Gustafsson Date: Fri, 20 Nov 2020 19:25:16 +0100 Subject: [PATCH 3/4] Removing whitespace before/after nullable pragma --- .../engine/parser/PreOrderVisitor.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs b/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs index 890d0d50fcf..ddd48c1a04f 100644 --- a/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs +++ b/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs @@ -250,11 +250,12 @@ public abstract class AstVisitor2 : AstVisitor public virtual AstVisitAction VisitPipelineChain(PipelineChainAst statementChain) => DefaultVisit(statementChain); } -#nullable enable + /// /// Implement this interface when you implement or when /// you want to do something after possibly visiting the children of the ast. /// +#nullable enable public interface IAstPostVisitHandler { /// From fd777be0d22d2976623ac8e0836a1c99d03d6c13 Mon Sep 17 00:00:00 2001 From: Robert Holt Date: Wed, 9 Dec 2020 11:58:03 -0800 Subject: [PATCH 4/4] Update src/System.Management.Automation/engine/parser/PreOrderVisitor.cs --- .../engine/parser/PreOrderVisitor.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs b/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs index ddd48c1a04f..33b2fadec64 100644 --- a/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs +++ b/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs @@ -250,7 +250,6 @@ public abstract class AstVisitor2 : AstVisitor public virtual AstVisitAction VisitPipelineChain(PipelineChainAst statementChain) => DefaultVisit(statementChain); } - /// /// Implement this interface when you implement or when /// you want to do something after possibly visiting the children of the ast.