-
Notifications
You must be signed in to change notification settings - Fork 4k
/
NullableAnnotation.cs
39 lines (38 loc) · 1.44 KB
/
NullableAnnotation.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace Microsoft.CodeAnalysis
{
/// <summary>
/// Represents the nullability of values that can be assigned
/// to an expression used as an lvalue.
/// </summary>
// Review docs: https://github.com/dotnet/roslyn/issues/35046
public enum NullableAnnotation : byte
{
/// <summary>
/// The expression has not been analyzed, or the syntax is
/// not an expression (such as a statement).
/// </summary>
/// <remarks>
/// There are a few different reasons the expression could
/// have not been analyzed:
/// 1) The symbol producing the expression comes from
/// a method that has not been annotated, such as
/// invoking a C# 7.3 or earlier method, or a
/// method in this compilation that is in a disabled
/// context.
/// 2) Nullable is completely disabled in this
/// compilation.
/// </remarks>
None = 0,
/// <summary>
/// The expression is not annotated (does not have a ?).
/// </summary>
NotAnnotated,
/// <summary>
/// The expression is annotated (does have a ?).
/// </summary>
Annotated,
}
}