// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#nullableenable
usingSystem.Collections.Generic;
usingSystem.Diagnostics;
usingSystem.Diagnostics.CodeAnalysis;
usingSystem.Threading;
namespaceMicrosoft.CodeAnalysis
...
...
@@ -33,7 +36,7 @@ internal class ModuleCompilationState<TNamedTypeSymbol, TMethodSymbol> : CommonM
/// <summary>
/// Maps an async/iterator method to the synthesized state machine type that implements the method.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#nullableenable
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Collections.Immutable;
...
...
@@ -29,7 +31,7 @@ public abstract class CompilationOptions
/// is derived from the name of the compilation (<see cref="Compilation.AssemblyName"/>)
/// by appending a default extension for <see cref="OutputKind"/>.
/// </remarks>
publicstringModuleName{get;protectedset;}
publicstring?ModuleName{get;protectedset;}
/// <summary>
/// The full name of a global implicit class (script class). This class implicitly encapsulates top-level statements,
...
...
@@ -41,7 +43,7 @@ public abstract class CompilationOptions
/// The full name of a type that declares static Main method. Must be a valid non-generic namespace-qualified name.
/// Null if any static Main method is a candidate for an entry point.
/// </summary>
publicstringMainTypeName{get;protectedset;}
publicstring?MainTypeName{get;protectedset;}
// Note that we avoid using default(ImmutableArray<byte>) for unspecified value since
// such value is currently not serializable by JSON serializer.
...
...
@@ -70,7 +72,7 @@ public abstract class CompilationOptions
/// path to key file.
/// </para>
/// </remarks>
publicstringCryptoKeyFile{get;protectedset;}
publicstring?CryptoKeyFile{get;protectedset;}
/// <summary>
/// The CSP container containing the key with which to sign the output.
...
...
@@ -86,7 +88,7 @@ public abstract class CompilationOptions
/// a signing tool (Microsoft .NET Framework Strong Name Utility (sn.exe) or equivalent) to sign them.
/// Gets the resolver for resolving XML document references for the compilation.
/// Null if the compilation is not allowed to contain XML file references, such as XML doc comment include tags and permission sets stored in an XML file.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#nullableenable
namespaceMicrosoft.CodeAnalysis.Operations
{
internalclassExpression
...
...
@@ -38,7 +40,7 @@ public static ConstantValue SynthesizeNumeric(ITypeSymbol type, int value)
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#nullableenable
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Collections.Immutable;
...
...
@@ -127,9 +129,9 @@ public ParseOptions WithFeatures(IEnumerable<KeyValuePair<string, string>> featu
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#nullableenable
usingRoslyn.Utilities;
usingSystem;
...
...
@@ -12,14 +14,14 @@ public struct PreprocessingSymbolInfo : IEquatable<PreprocessingSymbolInfo>
/// <summary>
/// The symbol that was referred to by the identifier, if any.
/// </summary>
publicIPreprocessingSymbolSymbol{get;}
publicIPreprocessingSymbol?Symbol{get;}
/// <summary>
/// Returns true if this preprocessing symbol is defined at the identifier position.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#nullableenable
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Collections.Immutable;
...
...
@@ -72,7 +74,7 @@ public SyntaxTree SyntaxTree
/// <param name="node">The expression or statement syntax node.</param>
/// <param name="path">The source path to normalize. May be absolute or relative.</param>
/// <param name="baseFilePath">Path of the source file that contains the <paramref name="path"/> (may also be relative), or null if not available.</param>
/// <returns>Normalized path, or null if <paramref name="path"/> can't be normalized. The resulting path doesn't need to exist.</returns>
/// <param name="path">The path to resolve. May be absolute or relative.</param>
/// <param name="baseFilePath">Path of the source file that contains the <paramref name="path"/> (may also be relative), or null if not available.</param>
/// <returns>Normalized path, or null if the file can't be resolved.</returns>
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#nullableenable
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Globalization;
...
...
@@ -83,7 +85,7 @@ public static bool TryParse(string str, out SubsystemVersion version)
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.