From 5cb5d9caef1488d51eadd6e099c970384b0ddad0 Mon Sep 17 00:00:00 2001 From: Pavel Koneski Date: Tue, 5 May 2026 21:04:46 -0700 Subject: [PATCH] Remove nullable annotations directives --- src/core/Microsoft.Scripting/ArgumentTypeException.cs | 2 -- src/core/Microsoft.Scripting/AssemblyLoadedEventArgs.cs | 2 -- src/core/Microsoft.Scripting/CompilerOptions.cs | 2 -- src/core/Microsoft.Scripting/ErrorSink.cs | 2 -- src/core/Microsoft.Scripting/Hosting/CompiledCode.cs | 2 -- .../Hosting/Configuration/LanguageElement.cs | 2 -- .../Hosting/Configuration/LanguageElementCollection.cs | 2 -- .../Microsoft.Scripting/Hosting/Configuration/OptionElement.cs | 2 -- .../Hosting/Configuration/OptionElementCollection.cs | 2 -- src/core/Microsoft.Scripting/Hosting/Configuration/Section.cs | 2 -- .../Microsoft.Scripting/Hosting/DocumentationOperations.cs | 2 -- src/core/Microsoft.Scripting/Hosting/ErrorListener.cs | 2 -- src/core/Microsoft.Scripting/Hosting/ErrorListenerProxy.cs | 2 -- src/core/Microsoft.Scripting/Hosting/ErrorSinkProxyListener.cs | 2 -- src/core/Microsoft.Scripting/Hosting/ExceptionOperations.cs | 2 -- src/core/Microsoft.Scripting/Hosting/LanguageSetup.cs | 2 -- src/core/Microsoft.Scripting/Hosting/MemberDoc.cs | 2 -- src/core/Microsoft.Scripting/Hosting/MemberKind.cs | 2 -- src/core/Microsoft.Scripting/Hosting/ObjectOperations.cs | 2 -- src/core/Microsoft.Scripting/Hosting/OverloadDoc.cs | 2 -- src/core/Microsoft.Scripting/Hosting/ParameterDoc.cs | 2 -- src/core/Microsoft.Scripting/Hosting/ParameterFlags.cs | 2 -- .../Microsoft.Scripting/Hosting/Providers/HostingHelpers.cs | 2 -- src/core/Microsoft.Scripting/Hosting/ScriptEngine.cs | 2 -- src/core/Microsoft.Scripting/Hosting/ScriptHost.cs | 2 -- src/core/Microsoft.Scripting/Hosting/ScriptHostProxy.cs | 2 -- src/core/Microsoft.Scripting/Hosting/ScriptIO.cs | 2 -- src/core/Microsoft.Scripting/Hosting/ScriptRuntime.cs | 2 -- src/core/Microsoft.Scripting/Hosting/ScriptRuntimeSetup.cs | 2 -- src/core/Microsoft.Scripting/Hosting/ScriptScope.cs | 2 -- src/core/Microsoft.Scripting/Hosting/ScriptSource.cs | 2 -- src/core/Microsoft.Scripting/Hosting/TokenCategorizer.cs | 2 -- src/core/Microsoft.Scripting/IndexSpan.cs | 2 -- src/core/Microsoft.Scripting/InvalidImplementationException.cs | 2 -- src/core/Microsoft.Scripting/LanguageOptions.cs | 2 -- src/core/Microsoft.Scripting/Microsoft.Scripting.csproj | 1 + src/core/Microsoft.Scripting/PlatformAdaptationLayer.cs | 2 -- src/core/Microsoft.Scripting/Properties/AssemblyInfo.cs | 2 -- src/core/Microsoft.Scripting/Runtime/ContextId.cs | 2 -- src/core/Microsoft.Scripting/Runtime/DlrConfiguration.cs | 2 -- src/core/Microsoft.Scripting/Runtime/DocumentationProvider.cs | 2 -- src/core/Microsoft.Scripting/Runtime/DynamicOperations.cs | 2 -- .../Runtime/DynamicRuntimeHostingProvider.cs | 2 -- src/core/Microsoft.Scripting/Runtime/DynamicStackFrame.cs | 2 -- src/core/Microsoft.Scripting/Runtime/InvariantContext.cs | 2 -- .../Runtime/LanguageBoundTextContentProvider.cs | 2 -- src/core/Microsoft.Scripting/Runtime/LanguageContext.cs | 2 -- src/core/Microsoft.Scripting/Runtime/NotNullAttribute.cs | 2 -- .../Microsoft.Scripting/Runtime/ObjectDictionaryExpando.cs | 2 -- .../Microsoft.Scripting/Runtime/ParamDictionaryAttribute.cs | 2 -- src/core/Microsoft.Scripting/Runtime/ParserSink.cs | 2 -- src/core/Microsoft.Scripting/Runtime/Scope.cs | 2 -- src/core/Microsoft.Scripting/Runtime/ScopeExtension.cs | 2 -- src/core/Microsoft.Scripting/Runtime/ScopeStorage.cs | 2 -- src/core/Microsoft.Scripting/Runtime/ScriptCode.cs | 2 -- src/core/Microsoft.Scripting/Runtime/ScriptDomainManager.cs | 2 -- src/core/Microsoft.Scripting/Runtime/SharedIO.cs | 2 -- .../Microsoft.Scripting/Runtime/SourceStringContentProvider.cs | 2 -- src/core/Microsoft.Scripting/Runtime/StreamContentProvider.cs | 2 -- .../Microsoft.Scripting/Runtime/StringDictionaryExpando.cs | 2 -- src/core/Microsoft.Scripting/Runtime/TokenInfo.cs | 2 -- src/core/Microsoft.Scripting/Runtime/TokenTriggers.cs | 2 -- src/core/Microsoft.Scripting/Runtime/TokenizerService.cs | 2 -- src/core/Microsoft.Scripting/ScriptCodeParseResult.cs | 2 -- src/core/Microsoft.Scripting/Severity.cs | 2 -- src/core/Microsoft.Scripting/SourceCodeKind.cs | 2 -- src/core/Microsoft.Scripting/SourceCodeReader.cs | 2 -- src/core/Microsoft.Scripting/SourceFileContentProvider.cs | 2 -- src/core/Microsoft.Scripting/SourceLocation.cs | 2 -- src/core/Microsoft.Scripting/SourceSpan.cs | 2 -- src/core/Microsoft.Scripting/SourceUnit.cs | 2 -- src/core/Microsoft.Scripting/SyntaxErrorException.cs | 2 -- src/core/Microsoft.Scripting/TextContentProvider.cs | 2 -- src/core/Microsoft.Scripting/TokenCategory.cs | 2 -- src/core/Microsoft.Scripting/Utils/ArrayUtils.cs | 2 -- .../Microsoft.Scripting/Utils/AssemblyQualifiedTypeName.cs | 2 -- src/core/Microsoft.Scripting/Utils/Assert.cs | 2 -- src/core/Microsoft.Scripting/Utils/CollectionExtensions.cs | 2 -- src/core/Microsoft.Scripting/Utils/ConsoleInputStream.cs | 2 -- src/core/Microsoft.Scripting/Utils/ConsoleStreamType.cs | 2 -- src/core/Microsoft.Scripting/Utils/ContractUtils.cs | 2 -- src/core/Microsoft.Scripting/Utils/DelegateUtils.cs | 2 -- .../Microsoft.Scripting/Utils/ExceptionFactory.Generated.cs | 3 ++- src/core/Microsoft.Scripting/Utils/ExceptionUtils.cs | 2 -- src/core/Microsoft.Scripting/Utils/ExpressionUtils.cs | 2 -- src/core/Microsoft.Scripting/Utils/NativeMethods.cs | 2 -- src/core/Microsoft.Scripting/Utils/ReflectionUtils.cs | 2 -- src/core/Microsoft.Scripting/Utils/TextStream.cs | 2 -- 88 files changed, 3 insertions(+), 173 deletions(-) diff --git a/src/core/Microsoft.Scripting/ArgumentTypeException.cs b/src/core/Microsoft.Scripting/ArgumentTypeException.cs index a3bd5d81..2f735b7e 100644 --- a/src/core/Microsoft.Scripting/ArgumentTypeException.cs +++ b/src/core/Microsoft.Scripting/ArgumentTypeException.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Runtime.Serialization; diff --git a/src/core/Microsoft.Scripting/AssemblyLoadedEventArgs.cs b/src/core/Microsoft.Scripting/AssemblyLoadedEventArgs.cs index 69057f3d..8f816c2c 100644 --- a/src/core/Microsoft.Scripting/AssemblyLoadedEventArgs.cs +++ b/src/core/Microsoft.Scripting/AssemblyLoadedEventArgs.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Collections.Generic; using System.Text; diff --git a/src/core/Microsoft.Scripting/CompilerOptions.cs b/src/core/Microsoft.Scripting/CompilerOptions.cs index 3641b171..f694f91b 100644 --- a/src/core/Microsoft.Scripting/CompilerOptions.cs +++ b/src/core/Microsoft.Scripting/CompilerOptions.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; namespace Microsoft.Scripting { diff --git a/src/core/Microsoft.Scripting/ErrorSink.cs b/src/core/Microsoft.Scripting/ErrorSink.cs index 71c442b7..e27ca6b1 100644 --- a/src/core/Microsoft.Scripting/ErrorSink.cs +++ b/src/core/Microsoft.Scripting/ErrorSink.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System.Threading; using Microsoft.Scripting.Utils; diff --git a/src/core/Microsoft.Scripting/Hosting/CompiledCode.cs b/src/core/Microsoft.Scripting/Hosting/CompiledCode.cs index 1f17d98c..6c67bc09 100644 --- a/src/core/Microsoft.Scripting/Hosting/CompiledCode.cs +++ b/src/core/Microsoft.Scripting/Hosting/CompiledCode.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - #if FEATURE_REMOTING using System.Runtime.Remoting; #else diff --git a/src/core/Microsoft.Scripting/Hosting/Configuration/LanguageElement.cs b/src/core/Microsoft.Scripting/Hosting/Configuration/LanguageElement.cs index 35c8668e..f48cfffa 100644 --- a/src/core/Microsoft.Scripting/Hosting/Configuration/LanguageElement.cs +++ b/src/core/Microsoft.Scripting/Hosting/Configuration/LanguageElement.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - #if FEATURE_CONFIGURATION using System; diff --git a/src/core/Microsoft.Scripting/Hosting/Configuration/LanguageElementCollection.cs b/src/core/Microsoft.Scripting/Hosting/Configuration/LanguageElementCollection.cs index 1a9abf77..315a8f78 100644 --- a/src/core/Microsoft.Scripting/Hosting/Configuration/LanguageElementCollection.cs +++ b/src/core/Microsoft.Scripting/Hosting/Configuration/LanguageElementCollection.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - #if FEATURE_CONFIGURATION using System.Configuration; diff --git a/src/core/Microsoft.Scripting/Hosting/Configuration/OptionElement.cs b/src/core/Microsoft.Scripting/Hosting/Configuration/OptionElement.cs index eafc150b..476d72a9 100644 --- a/src/core/Microsoft.Scripting/Hosting/Configuration/OptionElement.cs +++ b/src/core/Microsoft.Scripting/Hosting/Configuration/OptionElement.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - #if FEATURE_CONFIGURATION using System; diff --git a/src/core/Microsoft.Scripting/Hosting/Configuration/OptionElementCollection.cs b/src/core/Microsoft.Scripting/Hosting/Configuration/OptionElementCollection.cs index 363bdbd6..da905b0c 100644 --- a/src/core/Microsoft.Scripting/Hosting/Configuration/OptionElementCollection.cs +++ b/src/core/Microsoft.Scripting/Hosting/Configuration/OptionElementCollection.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - #if FEATURE_CONFIGURATION using System.Configuration; diff --git a/src/core/Microsoft.Scripting/Hosting/Configuration/Section.cs b/src/core/Microsoft.Scripting/Hosting/Configuration/Section.cs index 40c37c9c..8d6abb6a 100644 --- a/src/core/Microsoft.Scripting/Hosting/Configuration/Section.cs +++ b/src/core/Microsoft.Scripting/Hosting/Configuration/Section.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - #if FEATURE_CONFIGURATION using System; diff --git a/src/core/Microsoft.Scripting/Hosting/DocumentationOperations.cs b/src/core/Microsoft.Scripting/Hosting/DocumentationOperations.cs index c52f93e2..0dfc4b9a 100644 --- a/src/core/Microsoft.Scripting/Hosting/DocumentationOperations.cs +++ b/src/core/Microsoft.Scripting/Hosting/DocumentationOperations.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - #if FEATURE_REMOTING using System.Runtime.Remoting; #else diff --git a/src/core/Microsoft.Scripting/Hosting/ErrorListener.cs b/src/core/Microsoft.Scripting/Hosting/ErrorListener.cs index 1045d022..3ca39b67 100644 --- a/src/core/Microsoft.Scripting/Hosting/ErrorListener.cs +++ b/src/core/Microsoft.Scripting/Hosting/ErrorListener.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; #if FEATURE_REMOTING diff --git a/src/core/Microsoft.Scripting/Hosting/ErrorListenerProxy.cs b/src/core/Microsoft.Scripting/Hosting/ErrorListenerProxy.cs index e2d02bf1..cb5239e5 100644 --- a/src/core/Microsoft.Scripting/Hosting/ErrorListenerProxy.cs +++ b/src/core/Microsoft.Scripting/Hosting/ErrorListenerProxy.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - namespace Microsoft.Scripting.Hosting { /// diff --git a/src/core/Microsoft.Scripting/Hosting/ErrorSinkProxyListener.cs b/src/core/Microsoft.Scripting/Hosting/ErrorSinkProxyListener.cs index 4d032c29..5f1b4d98 100644 --- a/src/core/Microsoft.Scripting/Hosting/ErrorSinkProxyListener.cs +++ b/src/core/Microsoft.Scripting/Hosting/ErrorSinkProxyListener.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - namespace Microsoft.Scripting.Hosting { /// /// Bridges ErrorListener and ErrorSink. It provides the reverse functionality as ErrorSinkProxyListener diff --git a/src/core/Microsoft.Scripting/Hosting/ExceptionOperations.cs b/src/core/Microsoft.Scripting/Hosting/ExceptionOperations.cs index 2d32ebce..fa981f39 100644 --- a/src/core/Microsoft.Scripting/Hosting/ExceptionOperations.cs +++ b/src/core/Microsoft.Scripting/Hosting/ExceptionOperations.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Collections.Generic; diff --git a/src/core/Microsoft.Scripting/Hosting/LanguageSetup.cs b/src/core/Microsoft.Scripting/Hosting/LanguageSetup.cs index 891d0b38..dec5a9bc 100644 --- a/src/core/Microsoft.Scripting/Hosting/LanguageSetup.cs +++ b/src/core/Microsoft.Scripting/Hosting/LanguageSetup.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/src/core/Microsoft.Scripting/Hosting/MemberDoc.cs b/src/core/Microsoft.Scripting/Hosting/MemberDoc.cs index cdd1310d..55337ef4 100644 --- a/src/core/Microsoft.Scripting/Hosting/MemberDoc.cs +++ b/src/core/Microsoft.Scripting/Hosting/MemberDoc.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using Microsoft.Scripting.Utils; diff --git a/src/core/Microsoft.Scripting/Hosting/MemberKind.cs b/src/core/Microsoft.Scripting/Hosting/MemberKind.cs index 9b625c8a..5e62236f 100644 --- a/src/core/Microsoft.Scripting/Hosting/MemberKind.cs +++ b/src/core/Microsoft.Scripting/Hosting/MemberKind.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - namespace Microsoft.Scripting.Hosting { /// /// Specifies the type of member. diff --git a/src/core/Microsoft.Scripting/Hosting/ObjectOperations.cs b/src/core/Microsoft.Scripting/Hosting/ObjectOperations.cs index 3284045a..f8837230 100644 --- a/src/core/Microsoft.Scripting/Hosting/ObjectOperations.cs +++ b/src/core/Microsoft.Scripting/Hosting/ObjectOperations.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - #if FEATURE_REMOTING using System.Runtime.Remoting; #else diff --git a/src/core/Microsoft.Scripting/Hosting/OverloadDoc.cs b/src/core/Microsoft.Scripting/Hosting/OverloadDoc.cs index 30c59729..9dbe8938 100644 --- a/src/core/Microsoft.Scripting/Hosting/OverloadDoc.cs +++ b/src/core/Microsoft.Scripting/Hosting/OverloadDoc.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Collections.Generic; diff --git a/src/core/Microsoft.Scripting/Hosting/ParameterDoc.cs b/src/core/Microsoft.Scripting/Hosting/ParameterDoc.cs index d4066a7c..9b490688 100644 --- a/src/core/Microsoft.Scripting/Hosting/ParameterDoc.cs +++ b/src/core/Microsoft.Scripting/Hosting/ParameterDoc.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using Microsoft.Scripting.Utils; diff --git a/src/core/Microsoft.Scripting/Hosting/ParameterFlags.cs b/src/core/Microsoft.Scripting/Hosting/ParameterFlags.cs index c1f4c9c5..8bfe4dba 100644 --- a/src/core/Microsoft.Scripting/Hosting/ParameterFlags.cs +++ b/src/core/Microsoft.Scripting/Hosting/ParameterFlags.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; namespace Microsoft.Scripting.Hosting { diff --git a/src/core/Microsoft.Scripting/Hosting/Providers/HostingHelpers.cs b/src/core/Microsoft.Scripting/Hosting/Providers/HostingHelpers.cs index c7b5ef15..02f3c3ef 100644 --- a/src/core/Microsoft.Scripting/Hosting/Providers/HostingHelpers.cs +++ b/src/core/Microsoft.Scripting/Hosting/Providers/HostingHelpers.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - #if FEATURE_REMOTING using System.Runtime.Remoting; #else diff --git a/src/core/Microsoft.Scripting/Hosting/ScriptEngine.cs b/src/core/Microsoft.Scripting/Hosting/ScriptEngine.cs index 2ea8a812..290b20a2 100644 --- a/src/core/Microsoft.Scripting/Hosting/ScriptEngine.cs +++ b/src/core/Microsoft.Scripting/Hosting/ScriptEngine.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - #if FEATURE_REMOTING using System.Runtime.Remoting; #else diff --git a/src/core/Microsoft.Scripting/Hosting/ScriptHost.cs b/src/core/Microsoft.Scripting/Hosting/ScriptHost.cs index 9aedbf09..643814c8 100644 --- a/src/core/Microsoft.Scripting/Hosting/ScriptHost.cs +++ b/src/core/Microsoft.Scripting/Hosting/ScriptHost.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - #if FEATURE_REMOTING using System.Runtime.Remoting; #else diff --git a/src/core/Microsoft.Scripting/Hosting/ScriptHostProxy.cs b/src/core/Microsoft.Scripting/Hosting/ScriptHostProxy.cs index 110dbd66..0ee707ec 100644 --- a/src/core/Microsoft.Scripting/Hosting/ScriptHostProxy.cs +++ b/src/core/Microsoft.Scripting/Hosting/ScriptHostProxy.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using Microsoft.Scripting.Runtime; using Microsoft.Scripting.Utils; diff --git a/src/core/Microsoft.Scripting/Hosting/ScriptIO.cs b/src/core/Microsoft.Scripting/Hosting/ScriptIO.cs index 1fe60831..c73b7bcf 100644 --- a/src/core/Microsoft.Scripting/Hosting/ScriptIO.cs +++ b/src/core/Microsoft.Scripting/Hosting/ScriptIO.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - #if FEATURE_REMOTING using System.Runtime.Remoting; #else diff --git a/src/core/Microsoft.Scripting/Hosting/ScriptRuntime.cs b/src/core/Microsoft.Scripting/Hosting/ScriptRuntime.cs index c16ecd67..385f693c 100644 --- a/src/core/Microsoft.Scripting/Hosting/ScriptRuntime.cs +++ b/src/core/Microsoft.Scripting/Hosting/ScriptRuntime.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - #if FEATURE_REMOTING using System.Runtime.Remoting; #else diff --git a/src/core/Microsoft.Scripting/Hosting/ScriptRuntimeSetup.cs b/src/core/Microsoft.Scripting/Hosting/ScriptRuntimeSetup.cs index 106754f0..8de40e35 100644 --- a/src/core/Microsoft.Scripting/Hosting/ScriptRuntimeSetup.cs +++ b/src/core/Microsoft.Scripting/Hosting/ScriptRuntimeSetup.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/src/core/Microsoft.Scripting/Hosting/ScriptScope.cs b/src/core/Microsoft.Scripting/Hosting/ScriptScope.cs index c60beecf..e13546a8 100644 --- a/src/core/Microsoft.Scripting/Hosting/ScriptScope.cs +++ b/src/core/Microsoft.Scripting/Hosting/ScriptScope.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - #if FEATURE_REMOTING using System.Runtime.Remoting; #else diff --git a/src/core/Microsoft.Scripting/Hosting/ScriptSource.cs b/src/core/Microsoft.Scripting/Hosting/ScriptSource.cs index d0d97dc9..87953438 100644 --- a/src/core/Microsoft.Scripting/Hosting/ScriptSource.cs +++ b/src/core/Microsoft.Scripting/Hosting/ScriptSource.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - #if FEATURE_REMOTING using System.Runtime.Remoting; #else diff --git a/src/core/Microsoft.Scripting/Hosting/TokenCategorizer.cs b/src/core/Microsoft.Scripting/Hosting/TokenCategorizer.cs index d7ef799c..1f5bfbde 100644 --- a/src/core/Microsoft.Scripting/Hosting/TokenCategorizer.cs +++ b/src/core/Microsoft.Scripting/Hosting/TokenCategorizer.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; #if FEATURE_REMOTING diff --git a/src/core/Microsoft.Scripting/IndexSpan.cs b/src/core/Microsoft.Scripting/IndexSpan.cs index 7e1013c6..200f4e76 100644 --- a/src/core/Microsoft.Scripting/IndexSpan.cs +++ b/src/core/Microsoft.Scripting/IndexSpan.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using Microsoft.Scripting.Utils; diff --git a/src/core/Microsoft.Scripting/InvalidImplementationException.cs b/src/core/Microsoft.Scripting/InvalidImplementationException.cs index abaeaaa6..3d40984c 100644 --- a/src/core/Microsoft.Scripting/InvalidImplementationException.cs +++ b/src/core/Microsoft.Scripting/InvalidImplementationException.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Runtime.Serialization; diff --git a/src/core/Microsoft.Scripting/LanguageOptions.cs b/src/core/Microsoft.Scripting/LanguageOptions.cs index 4329f80c..6ce84ce0 100644 --- a/src/core/Microsoft.Scripting/LanguageOptions.cs +++ b/src/core/Microsoft.Scripting/LanguageOptions.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/src/core/Microsoft.Scripting/Microsoft.Scripting.csproj b/src/core/Microsoft.Scripting/Microsoft.Scripting.csproj index e8f70bd5..feab801e 100644 --- a/src/core/Microsoft.Scripting/Microsoft.Scripting.csproj +++ b/src/core/Microsoft.Scripting/Microsoft.Scripting.csproj @@ -2,6 +2,7 @@ net462;netstandard2.0;net8.0;net9.0;net10.0 + enable 857735168 true True diff --git a/src/core/Microsoft.Scripting/PlatformAdaptationLayer.cs b/src/core/Microsoft.Scripting/PlatformAdaptationLayer.cs index 7d32d782..91c46fa6 100644 --- a/src/core/Microsoft.Scripting/PlatformAdaptationLayer.cs +++ b/src/core/Microsoft.Scripting/PlatformAdaptationLayer.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Collections; using System.Collections.Generic; diff --git a/src/core/Microsoft.Scripting/Properties/AssemblyInfo.cs b/src/core/Microsoft.Scripting/Properties/AssemblyInfo.cs index b1a54f15..4a92b22b 100644 --- a/src/core/Microsoft.Scripting/Properties/AssemblyInfo.cs +++ b/src/core/Microsoft.Scripting/Properties/AssemblyInfo.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Reflection; using System.Runtime.CompilerServices; diff --git a/src/core/Microsoft.Scripting/Runtime/ContextId.cs b/src/core/Microsoft.Scripting/Runtime/ContextId.cs index 6bd67a08..bd7eac0c 100644 --- a/src/core/Microsoft.Scripting/Runtime/ContextId.cs +++ b/src/core/Microsoft.Scripting/Runtime/ContextId.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Collections.Generic; diff --git a/src/core/Microsoft.Scripting/Runtime/DlrConfiguration.cs b/src/core/Microsoft.Scripting/Runtime/DlrConfiguration.cs index 7bf102c1..8350c7de 100644 --- a/src/core/Microsoft.Scripting/Runtime/DlrConfiguration.cs +++ b/src/core/Microsoft.Scripting/Runtime/DlrConfiguration.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Collections.Generic; using System.Diagnostics; diff --git a/src/core/Microsoft.Scripting/Runtime/DocumentationProvider.cs b/src/core/Microsoft.Scripting/Runtime/DocumentationProvider.cs index c2ab0a24..61b51009 100644 --- a/src/core/Microsoft.Scripting/Runtime/DocumentationProvider.cs +++ b/src/core/Microsoft.Scripting/Runtime/DocumentationProvider.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System.Collections.Generic; using Microsoft.Scripting.Hosting; diff --git a/src/core/Microsoft.Scripting/Runtime/DynamicOperations.cs b/src/core/Microsoft.Scripting/Runtime/DynamicOperations.cs index cc4f119e..78a88e2c 100644 --- a/src/core/Microsoft.Scripting/Runtime/DynamicOperations.cs +++ b/src/core/Microsoft.Scripting/Runtime/DynamicOperations.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Collections.Generic; using System.Diagnostics; diff --git a/src/core/Microsoft.Scripting/Runtime/DynamicRuntimeHostingProvider.cs b/src/core/Microsoft.Scripting/Runtime/DynamicRuntimeHostingProvider.cs index f028bf6c..4e8eb2c0 100644 --- a/src/core/Microsoft.Scripting/Runtime/DynamicRuntimeHostingProvider.cs +++ b/src/core/Microsoft.Scripting/Runtime/DynamicRuntimeHostingProvider.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; namespace Microsoft.Scripting.Runtime { diff --git a/src/core/Microsoft.Scripting/Runtime/DynamicStackFrame.cs b/src/core/Microsoft.Scripting/Runtime/DynamicStackFrame.cs index cf632a62..8e597db2 100644 --- a/src/core/Microsoft.Scripting/Runtime/DynamicStackFrame.cs +++ b/src/core/Microsoft.Scripting/Runtime/DynamicStackFrame.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Reflection; diff --git a/src/core/Microsoft.Scripting/Runtime/InvariantContext.cs b/src/core/Microsoft.Scripting/Runtime/InvariantContext.cs index 7c374469..3c3ae0da 100644 --- a/src/core/Microsoft.Scripting/Runtime/InvariantContext.cs +++ b/src/core/Microsoft.Scripting/Runtime/InvariantContext.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Diagnostics.CodeAnalysis; diff --git a/src/core/Microsoft.Scripting/Runtime/LanguageBoundTextContentProvider.cs b/src/core/Microsoft.Scripting/Runtime/LanguageBoundTextContentProvider.cs index dd2ef425..f641bdc6 100644 --- a/src/core/Microsoft.Scripting/Runtime/LanguageBoundTextContentProvider.cs +++ b/src/core/Microsoft.Scripting/Runtime/LanguageBoundTextContentProvider.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System.IO; using System.Text; diff --git a/src/core/Microsoft.Scripting/Runtime/LanguageContext.cs b/src/core/Microsoft.Scripting/Runtime/LanguageContext.cs index 8f472ba0..b8bee5a4 100644 --- a/src/core/Microsoft.Scripting/Runtime/LanguageContext.cs +++ b/src/core/Microsoft.Scripting/Runtime/LanguageContext.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; diff --git a/src/core/Microsoft.Scripting/Runtime/NotNullAttribute.cs b/src/core/Microsoft.Scripting/Runtime/NotNullAttribute.cs index 76694467..9401b741 100644 --- a/src/core/Microsoft.Scripting/Runtime/NotNullAttribute.cs +++ b/src/core/Microsoft.Scripting/Runtime/NotNullAttribute.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; namespace Microsoft.Scripting.Runtime { diff --git a/src/core/Microsoft.Scripting/Runtime/ObjectDictionaryExpando.cs b/src/core/Microsoft.Scripting/Runtime/ObjectDictionaryExpando.cs index 24c04d07..019ac176 100644 --- a/src/core/Microsoft.Scripting/Runtime/ObjectDictionaryExpando.cs +++ b/src/core/Microsoft.Scripting/Runtime/ObjectDictionaryExpando.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System.Collections.Generic; using System.Dynamic; using System.Linq.Expressions; diff --git a/src/core/Microsoft.Scripting/Runtime/ParamDictionaryAttribute.cs b/src/core/Microsoft.Scripting/Runtime/ParamDictionaryAttribute.cs index 0d692234..bae6c30f 100644 --- a/src/core/Microsoft.Scripting/Runtime/ParamDictionaryAttribute.cs +++ b/src/core/Microsoft.Scripting/Runtime/ParamDictionaryAttribute.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; namespace Microsoft.Scripting { diff --git a/src/core/Microsoft.Scripting/Runtime/ParserSink.cs b/src/core/Microsoft.Scripting/Runtime/ParserSink.cs index 97cdb690..0a586b71 100644 --- a/src/core/Microsoft.Scripting/Runtime/ParserSink.cs +++ b/src/core/Microsoft.Scripting/Runtime/ParserSink.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - namespace Microsoft.Scripting.Runtime { public class ParserSink { diff --git a/src/core/Microsoft.Scripting/Runtime/Scope.cs b/src/core/Microsoft.Scripting/Runtime/Scope.cs index 11d78a40..8090d18c 100644 --- a/src/core/Microsoft.Scripting/Runtime/Scope.cs +++ b/src/core/Microsoft.Scripting/Runtime/Scope.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Collections.Generic; using System.Dynamic; diff --git a/src/core/Microsoft.Scripting/Runtime/ScopeExtension.cs b/src/core/Microsoft.Scripting/Runtime/ScopeExtension.cs index 645ae4ed..9813c292 100644 --- a/src/core/Microsoft.Scripting/Runtime/ScopeExtension.cs +++ b/src/core/Microsoft.Scripting/Runtime/ScopeExtension.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using Microsoft.Scripting.Utils; namespace Microsoft.Scripting.Runtime { diff --git a/src/core/Microsoft.Scripting/Runtime/ScopeStorage.cs b/src/core/Microsoft.Scripting/Runtime/ScopeStorage.cs index 3e241b01..6270f571 100644 --- a/src/core/Microsoft.Scripting/Runtime/ScopeStorage.cs +++ b/src/core/Microsoft.Scripting/Runtime/ScopeStorage.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; diff --git a/src/core/Microsoft.Scripting/Runtime/ScriptCode.cs b/src/core/Microsoft.Scripting/Runtime/ScriptCode.cs index 2e0f5c79..d9423367 100644 --- a/src/core/Microsoft.Scripting/Runtime/ScriptCode.cs +++ b/src/core/Microsoft.Scripting/Runtime/ScriptCode.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using Microsoft.Scripting.Runtime; using Microsoft.Scripting.Utils; diff --git a/src/core/Microsoft.Scripting/Runtime/ScriptDomainManager.cs b/src/core/Microsoft.Scripting/Runtime/ScriptDomainManager.cs index 373117a1..4317c5fd 100644 --- a/src/core/Microsoft.Scripting/Runtime/ScriptDomainManager.cs +++ b/src/core/Microsoft.Scripting/Runtime/ScriptDomainManager.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; diff --git a/src/core/Microsoft.Scripting/Runtime/SharedIO.cs b/src/core/Microsoft.Scripting/Runtime/SharedIO.cs index de16ccca..4ab7605f 100644 --- a/src/core/Microsoft.Scripting/Runtime/SharedIO.cs +++ b/src/core/Microsoft.Scripting/Runtime/SharedIO.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Diagnostics.CodeAnalysis; using System.IO; diff --git a/src/core/Microsoft.Scripting/Runtime/SourceStringContentProvider.cs b/src/core/Microsoft.Scripting/Runtime/SourceStringContentProvider.cs index f136da76..e37cb7e1 100644 --- a/src/core/Microsoft.Scripting/Runtime/SourceStringContentProvider.cs +++ b/src/core/Microsoft.Scripting/Runtime/SourceStringContentProvider.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.IO; diff --git a/src/core/Microsoft.Scripting/Runtime/StreamContentProvider.cs b/src/core/Microsoft.Scripting/Runtime/StreamContentProvider.cs index 561189b0..cd51801b 100644 --- a/src/core/Microsoft.Scripting/Runtime/StreamContentProvider.cs +++ b/src/core/Microsoft.Scripting/Runtime/StreamContentProvider.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.IO; diff --git a/src/core/Microsoft.Scripting/Runtime/StringDictionaryExpando.cs b/src/core/Microsoft.Scripting/Runtime/StringDictionaryExpando.cs index bc08bbeb..cfada707 100644 --- a/src/core/Microsoft.Scripting/Runtime/StringDictionaryExpando.cs +++ b/src/core/Microsoft.Scripting/Runtime/StringDictionaryExpando.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Collections; using System.Collections.Generic; diff --git a/src/core/Microsoft.Scripting/Runtime/TokenInfo.cs b/src/core/Microsoft.Scripting/Runtime/TokenInfo.cs index 70be5e1e..0e41574a 100644 --- a/src/core/Microsoft.Scripting/Runtime/TokenInfo.cs +++ b/src/core/Microsoft.Scripting/Runtime/TokenInfo.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; namespace Microsoft.Scripting { diff --git a/src/core/Microsoft.Scripting/Runtime/TokenTriggers.cs b/src/core/Microsoft.Scripting/Runtime/TokenTriggers.cs index 72ba9296..fcfbfcc3 100644 --- a/src/core/Microsoft.Scripting/Runtime/TokenTriggers.cs +++ b/src/core/Microsoft.Scripting/Runtime/TokenTriggers.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; namespace Microsoft.Scripting { diff --git a/src/core/Microsoft.Scripting/Runtime/TokenizerService.cs b/src/core/Microsoft.Scripting/Runtime/TokenizerService.cs index 2cae18e3..062972ea 100644 --- a/src/core/Microsoft.Scripting/Runtime/TokenizerService.cs +++ b/src/core/Microsoft.Scripting/Runtime/TokenizerService.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System.Collections.Generic; using System.IO; diff --git a/src/core/Microsoft.Scripting/ScriptCodeParseResult.cs b/src/core/Microsoft.Scripting/ScriptCodeParseResult.cs index 28ac7136..7ce6e810 100644 --- a/src/core/Microsoft.Scripting/ScriptCodeParseResult.cs +++ b/src/core/Microsoft.Scripting/ScriptCodeParseResult.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - namespace Microsoft.Scripting { public enum ScriptCodeParseResult { /// diff --git a/src/core/Microsoft.Scripting/Severity.cs b/src/core/Microsoft.Scripting/Severity.cs index 1519ba96..4d84beeb 100644 --- a/src/core/Microsoft.Scripting/Severity.cs +++ b/src/core/Microsoft.Scripting/Severity.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - namespace Microsoft.Scripting { public enum Severity { Ignore, diff --git a/src/core/Microsoft.Scripting/SourceCodeKind.cs b/src/core/Microsoft.Scripting/SourceCodeKind.cs index 30881ceb..d7a29db3 100644 --- a/src/core/Microsoft.Scripting/SourceCodeKind.cs +++ b/src/core/Microsoft.Scripting/SourceCodeKind.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System.ComponentModel; namespace Microsoft.Scripting { diff --git a/src/core/Microsoft.Scripting/SourceCodeReader.cs b/src/core/Microsoft.Scripting/SourceCodeReader.cs index db87303b..84768f8e 100644 --- a/src/core/Microsoft.Scripting/SourceCodeReader.cs +++ b/src/core/Microsoft.Scripting/SourceCodeReader.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.IO; using System.Text; diff --git a/src/core/Microsoft.Scripting/SourceFileContentProvider.cs b/src/core/Microsoft.Scripting/SourceFileContentProvider.cs index 97f48c03..64899188 100644 --- a/src/core/Microsoft.Scripting/SourceFileContentProvider.cs +++ b/src/core/Microsoft.Scripting/SourceFileContentProvider.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - #if FEATURE_REMOTING using System.Runtime.Remoting; #else diff --git a/src/core/Microsoft.Scripting/SourceLocation.cs b/src/core/Microsoft.Scripting/SourceLocation.cs index 812f740b..ad7fa812 100644 --- a/src/core/Microsoft.Scripting/SourceLocation.cs +++ b/src/core/Microsoft.Scripting/SourceLocation.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Globalization; diff --git a/src/core/Microsoft.Scripting/SourceSpan.cs b/src/core/Microsoft.Scripting/SourceSpan.cs index 5ba8d3a8..21ebcebe 100644 --- a/src/core/Microsoft.Scripting/SourceSpan.cs +++ b/src/core/Microsoft.Scripting/SourceSpan.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Globalization; diff --git a/src/core/Microsoft.Scripting/SourceUnit.cs b/src/core/Microsoft.Scripting/SourceUnit.cs index 7031fbd7..e88322fc 100644 --- a/src/core/Microsoft.Scripting/SourceUnit.cs +++ b/src/core/Microsoft.Scripting/SourceUnit.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System.Linq.Expressions; using System; diff --git a/src/core/Microsoft.Scripting/SyntaxErrorException.cs b/src/core/Microsoft.Scripting/SyntaxErrorException.cs index 79c19030..b8def427 100644 --- a/src/core/Microsoft.Scripting/SyntaxErrorException.cs +++ b/src/core/Microsoft.Scripting/SyntaxErrorException.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Runtime.Serialization; using System.Dynamic; diff --git a/src/core/Microsoft.Scripting/TextContentProvider.cs b/src/core/Microsoft.Scripting/TextContentProvider.cs index 13ea0560..c6fdeaed 100644 --- a/src/core/Microsoft.Scripting/TextContentProvider.cs +++ b/src/core/Microsoft.Scripting/TextContentProvider.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.IO; using System.Text; diff --git a/src/core/Microsoft.Scripting/TokenCategory.cs b/src/core/Microsoft.Scripting/TokenCategory.cs index 1d6ce59a..778dc04c 100644 --- a/src/core/Microsoft.Scripting/TokenCategory.cs +++ b/src/core/Microsoft.Scripting/TokenCategory.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - namespace Microsoft.Scripting { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1027:MarkEnumsWithFlags")] diff --git a/src/core/Microsoft.Scripting/Utils/ArrayUtils.cs b/src/core/Microsoft.Scripting/Utils/ArrayUtils.cs index 6bc54114..1ea7906f 100644 --- a/src/core/Microsoft.Scripting/Utils/ArrayUtils.cs +++ b/src/core/Microsoft.Scripting/Utils/ArrayUtils.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Collections.Generic; using System.Diagnostics; diff --git a/src/core/Microsoft.Scripting/Utils/AssemblyQualifiedTypeName.cs b/src/core/Microsoft.Scripting/Utils/AssemblyQualifiedTypeName.cs index 3087c83e..134f888a 100644 --- a/src/core/Microsoft.Scripting/Utils/AssemblyQualifiedTypeName.cs +++ b/src/core/Microsoft.Scripting/Utils/AssemblyQualifiedTypeName.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Reflection; diff --git a/src/core/Microsoft.Scripting/Utils/Assert.cs b/src/core/Microsoft.Scripting/Utils/Assert.cs index fd226e9f..83eae96a 100644 --- a/src/core/Microsoft.Scripting/Utils/Assert.cs +++ b/src/core/Microsoft.Scripting/Utils/Assert.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - #define DEBUG using System; diff --git a/src/core/Microsoft.Scripting/Utils/CollectionExtensions.cs b/src/core/Microsoft.Scripting/Utils/CollectionExtensions.cs index b16c62dd..1bcbc770 100644 --- a/src/core/Microsoft.Scripting/Utils/CollectionExtensions.cs +++ b/src/core/Microsoft.Scripting/Utils/CollectionExtensions.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/src/core/Microsoft.Scripting/Utils/ConsoleInputStream.cs b/src/core/Microsoft.Scripting/Utils/ConsoleInputStream.cs index 31735e7b..92f83885 100644 --- a/src/core/Microsoft.Scripting/Utils/ConsoleInputStream.cs +++ b/src/core/Microsoft.Scripting/Utils/ConsoleInputStream.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Collections.Generic; using System.Text; diff --git a/src/core/Microsoft.Scripting/Utils/ConsoleStreamType.cs b/src/core/Microsoft.Scripting/Utils/ConsoleStreamType.cs index cb1671d7..d033c037 100644 --- a/src/core/Microsoft.Scripting/Utils/ConsoleStreamType.cs +++ b/src/core/Microsoft.Scripting/Utils/ConsoleStreamType.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - namespace Microsoft.Scripting.Utils { public enum ConsoleStreamType { Input, diff --git a/src/core/Microsoft.Scripting/Utils/ContractUtils.cs b/src/core/Microsoft.Scripting/Utils/ContractUtils.cs index 612a4449..5c83ccf7 100644 --- a/src/core/Microsoft.Scripting/Utils/ContractUtils.cs +++ b/src/core/Microsoft.Scripting/Utils/ContractUtils.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Collections; using System.Collections.Generic; diff --git a/src/core/Microsoft.Scripting/Utils/DelegateUtils.cs b/src/core/Microsoft.Scripting/Utils/DelegateUtils.cs index 0622a17b..6c9c0444 100644 --- a/src/core/Microsoft.Scripting/Utils/DelegateUtils.cs +++ b/src/core/Microsoft.Scripting/Utils/DelegateUtils.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - #if FEATURE_REFEMIT using System; diff --git a/src/core/Microsoft.Scripting/Utils/ExceptionFactory.Generated.cs b/src/core/Microsoft.Scripting/Utils/ExceptionFactory.Generated.cs index e6c8be94..92ff0b32 100644 --- a/src/core/Microsoft.Scripting/Utils/ExceptionFactory.Generated.cs +++ b/src/core/Microsoft.Scripting/Utils/ExceptionFactory.Generated.cs @@ -9,11 +9,12 @@ namespace Microsoft.Scripting { internal static partial class Strings { - private static string FormatString(string format, params object[] args) { + private static string FormatString(string format, params object?[] args) { return string.Format(System.Globalization.CultureInfo.CurrentCulture, format, args); } } + #region Generated Microsoft.Scripting Exception Factory // *** BEGIN GENERATED CODE *** diff --git a/src/core/Microsoft.Scripting/Utils/ExceptionUtils.cs b/src/core/Microsoft.Scripting/Utils/ExceptionUtils.cs index 44fb100a..ad0d3db9 100644 --- a/src/core/Microsoft.Scripting/Utils/ExceptionUtils.cs +++ b/src/core/Microsoft.Scripting/Utils/ExceptionUtils.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; namespace Microsoft.Scripting.Utils { diff --git a/src/core/Microsoft.Scripting/Utils/ExpressionUtils.cs b/src/core/Microsoft.Scripting/Utils/ExpressionUtils.cs index 47cc5c56..d5e9166c 100644 --- a/src/core/Microsoft.Scripting/Utils/ExpressionUtils.cs +++ b/src/core/Microsoft.Scripting/Utils/ExpressionUtils.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System.Linq.Expressions; using System; diff --git a/src/core/Microsoft.Scripting/Utils/NativeMethods.cs b/src/core/Microsoft.Scripting/Utils/NativeMethods.cs index 1c3019f0..14009196 100644 --- a/src/core/Microsoft.Scripting/Utils/NativeMethods.cs +++ b/src/core/Microsoft.Scripting/Utils/NativeMethods.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - #if FEATURE_NATIVE using System; diff --git a/src/core/Microsoft.Scripting/Utils/ReflectionUtils.cs b/src/core/Microsoft.Scripting/Utils/ReflectionUtils.cs index dfd6f8b4..198134ec 100644 --- a/src/core/Microsoft.Scripting/Utils/ReflectionUtils.cs +++ b/src/core/Microsoft.Scripting/Utils/ReflectionUtils.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Linq; using System.Reflection; diff --git a/src/core/Microsoft.Scripting/Utils/TextStream.cs b/src/core/Microsoft.Scripting/Utils/TextStream.cs index e8551872..7393e592 100644 --- a/src/core/Microsoft.Scripting/Utils/TextStream.cs +++ b/src/core/Microsoft.Scripting/Utils/TextStream.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. -#nullable enable - using System; using System.Diagnostics.CodeAnalysis; using System.IO;