16 references to ConstraintContextualKeyword
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder_Constraints.cs (4)
256
var type = BindTypeOrConstraintKeyword(typeSyntax, diagnostics, out
ConstraintContextualKeyword
keyword);
260
case
ConstraintContextualKeyword
.Unmanaged:
274
case
ConstraintContextualKeyword
.NotNull:
283
case
ConstraintContextualKeyword
.None:
Binder\Binder_Symbols.cs (12)
50
/// Set to <see cref="
ConstraintContextualKeyword
.None"/> if syntax binds to a type in the current context, otherwise
57
private TypeWithAnnotations BindTypeOrConstraintKeyword(TypeSyntax syntax, BindingDiagnosticBag diagnostics, out
ConstraintContextualKeyword
keyword)
60
Debug.Assert((keyword !=
ConstraintContextualKeyword
.None) == symbol.IsDefault);
61
return (keyword !=
ConstraintContextualKeyword
.None) ? default : UnwrapAlias(symbol, diagnostics, syntax).TypeWithAnnotations;
134
private NamespaceOrTypeOrAliasSymbolWithAnnotations BindTypeOrAliasOrConstraintKeyword(TypeSyntax syntax, BindingDiagnosticBag diagnostics, out
ConstraintContextualKeyword
keyword)
138
keyword =
ConstraintContextualKeyword
.Unmanaged;
142
keyword =
ConstraintContextualKeyword
.NotNull;
146
keyword =
ConstraintContextualKeyword
.None;
149
if (keyword !=
ConstraintContextualKeyword
.None)
158
case
ConstraintContextualKeyword
.Unmanaged:
161
case
ConstraintContextualKeyword
.NotNull:
170
keyword =
ConstraintContextualKeyword
.None;