16 references to ConstraintContextualKeyword
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder_Constraints.cs (4)
257
var type = BindTypeOrConstraintKeyword(typeSyntax, diagnostics, out
ConstraintContextualKeyword
keyword);
261
case
ConstraintContextualKeyword
.Unmanaged:
275
case
ConstraintContextualKeyword
.NotNull:
284
case
ConstraintContextualKeyword
.None:
Binder\Binder_Symbols.cs (12)
52
/// Set to <see cref="
ConstraintContextualKeyword
.None"/> if syntax binds to a type in the current context, otherwise
59
private TypeWithAnnotations BindTypeOrConstraintKeyword(TypeSyntax syntax, BindingDiagnosticBag diagnostics, out
ConstraintContextualKeyword
keyword)
62
Debug.Assert((keyword !=
ConstraintContextualKeyword
.None) == symbol.IsDefault);
63
return (keyword !=
ConstraintContextualKeyword
.None) ? default : UnwrapAlias(symbol, diagnostics, syntax).TypeWithAnnotations;
136
private NamespaceOrTypeOrAliasSymbolWithAnnotations BindTypeOrAliasOrConstraintKeyword(TypeSyntax syntax, BindingDiagnosticBag diagnostics, out
ConstraintContextualKeyword
keyword)
140
keyword =
ConstraintContextualKeyword
.Unmanaged;
144
keyword =
ConstraintContextualKeyword
.NotNull;
148
keyword =
ConstraintContextualKeyword
.None;
151
if (keyword !=
ConstraintContextualKeyword
.None)
160
case
ConstraintContextualKeyword
.Unmanaged:
163
case
ConstraintContextualKeyword
.NotNull:
172
keyword =
ConstraintContextualKeyword
.None;