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)
51
/// Set to <see cref="
ConstraintContextualKeyword
.None"/> if syntax binds to a type in the current context, otherwise
58
private TypeWithAnnotations BindTypeOrConstraintKeyword(TypeSyntax syntax, BindingDiagnosticBag diagnostics, out
ConstraintContextualKeyword
keyword)
61
Debug.Assert((keyword !=
ConstraintContextualKeyword
.None) == symbol.IsDefault);
62
return (keyword !=
ConstraintContextualKeyword
.None) ? default : UnwrapAlias(symbol, diagnostics, syntax).TypeWithAnnotations;
135
private NamespaceOrTypeOrAliasSymbolWithAnnotations BindTypeOrAliasOrConstraintKeyword(TypeSyntax syntax, BindingDiagnosticBag diagnostics, out
ConstraintContextualKeyword
keyword)
139
keyword =
ConstraintContextualKeyword
.Unmanaged;
143
keyword =
ConstraintContextualKeyword
.NotNull;
147
keyword =
ConstraintContextualKeyword
.None;
150
if (keyword !=
ConstraintContextualKeyword
.None)
159
case
ConstraintContextualKeyword
.Unmanaged:
162
case
ConstraintContextualKeyword
.NotNull:
171
keyword =
ConstraintContextualKeyword
.None;