61 references to Includes
Microsoft.CodeAnalysis.CSharp (61)
Binder\Binder.cs (10)
51
RoslynDebug.Assert(!flags.
Includes
(BinderFlags.UncheckedRegion | BinderFlags.CheckedRegion));
53
RoslynDebug.Assert(!flags.
Includes
(BinderFlags.InNestedFinallyBlock) || flags.
Includes
(BinderFlags.InFinallyBlock | BinderFlags.InCatchBlock));
63
return this.Flags.
Includes
(BinderFlags.SemanticModel);
72
return this.Flags.
Includes
(BinderFlags.EarlyAttributeBinding);
113
RoslynDebug.Assert(!this.Flags.
Includes
(BinderFlags.UncheckedRegion | BinderFlags.CheckedRegion));
115
return this.Flags.
Includes
(BinderFlags.CheckedRegion)
117
: this.Flags.
Includes
(BinderFlags.UncheckedRegion)
785
return this.Flags.
Includes
(BinderFlags.IgnoreAccessibility) || AccessCheck.IsSymbolAccessible(symbol, within, ref useSiteInfo, throughTypeOpt);
796
if (this.Flags.
Includes
(BinderFlags.IgnoreAccessibility))
Binder\Binder.ValueChecks.cs (1)
1608
return Flags.
Includes
(BinderFlags.ObjectInitializerMember) && receiver.Kind == BoundKind.ObjectOrCollectionValuePlaceholder ||
Binder\Binder_Await.cs (7)
138
return this.Flags.
Includes
(BinderFlags.InCatchFilter) ||
139
this.Flags.
Includes
(BinderFlags.InLockBody);
205
if (this.InUnsafeRegion && !this.Flags.
Includes
(BinderFlags.AllowAwaitInUnsafeContext))
210
else if (this.Flags.
Includes
(BinderFlags.InLockBody))
215
else if (this.Flags.
Includes
(BinderFlags.InCatchFilter))
220
else if (this.Flags.
Includes
(BinderFlags.InFinallyBlock) &&
226
else if (this.Flags.
Includes
(BinderFlags.InCatchBlock) &&
Binder\Binder_Constraints.cs (1)
32
Debug.Assert(this.Flags.
Includes
(BinderFlags.GenericConstraintsClause));
Binder\Binder_Crefs.cs (1)
83
Debug.Assert(Flags.
Includes
(BinderFlags.Cref));
Binder\Binder_Expressions.cs (9)
66
get { return this.Flags.
Includes
(BinderFlags.FieldInitializer); }
71
get { return this.Flags.
Includes
(BinderFlags.ParameterDefaultValue); }
76
get { return this.Flags.
Includes
(BinderFlags.ConstructorInitializer); }
81
get { return this.Flags.
Includes
(BinderFlags.AttributeArgument); }
86
get { return this.Flags.
Includes
(BinderFlags.Cref); }
91
get { return InCref && !this.Flags.
Includes
(BinderFlags.CrefParameterOrReturnType); }
6419
Debug.Assert(collectionInitializerAddMethodBinder.Flags.
Includes
(BinderFlags.CollectionInitializerAddMethod));
8064
(Flags.
Includes
(BinderFlags.CollectionExpressionConversionValidation | BinderFlags.CollectionInitializerAddMethod) && name is ParameterSyntax))
8814
ErrorCode errorCode = this.Flags.
Includes
(BinderFlags.ObjectInitializerMember) ?
Binder\Binder_Flags.cs (4)
73
return this.Flags.
Includes
(flags)
102
if (this.Flags.
Includes
(BinderFlags.UnsafeRegion))
116
Debug.Assert(!this.Flags.
Includes
(BinderFlags.UncheckedRegion | BinderFlags.CheckedRegion));
121
return this.Flags.
Includes
(added)
Binder\Binder_Invocation.cs (1)
1600
if (Flags.
Includes
(BinderFlags.ParameterDefaultValue))
Binder\Binder_Lookup.cs (1)
1688
if (this.Flags.
Includes
(BinderFlags.IgnoreAccessibility))
Binder\Binder_Operators.cs (1)
2543
bool allowManagedAddressOf = Flags.
Includes
(BinderFlags.AllowMoveableAddressOf);
Binder\Binder_Statements.cs (6)
254
if (this.Flags.
Includes
(BinderFlags.InFinallyBlock))
258
else if (this.Flags.
Includes
(BinderFlags.InTryBlockOfTryCatch))
262
else if (this.Flags.
Includes
(BinderFlags.InCatchBlock))
281
if (this.Flags.
Includes
(BinderFlags.InFinallyBlock))
444
else if (!this.Flags.
Includes
(BinderFlags.InCatchBlock))
449
else if (this.Flags.
Includes
(BinderFlags.InNestedFinallyBlock))
Binder\Binder_Symbols.cs (2)
1597
return !this.Flags.
Includes
(BinderFlags.SuppressConstraintChecks);
2091
else if (this.Flags.
Includes
(BinderFlags.IgnoreCorLibraryDuplicatedTypes) &&
Binder\Binder_Unsafe.cs (2)
23
get { return this.Flags.
Includes
(BinderFlags.UnsafeRegion); }
55
if (this.Flags.
Includes
(BinderFlags.SuppressUnsafeDiagnostics))
Binder\InMethodBinder.cs (1)
43
Debug.Assert(!enclosing.Flags.
Includes
(BinderFlags.InCatchFilter));
Binder\LocalBinderFactory.cs (2)
912
if (_enclosing.Flags.
Includes
(BinderFlags.InCatchBlock))
920
Debug.Assert(_map.TryGetValue(node.Block, out finallyBinder) && finallyBinder.Flags.
Includes
(BinderFlags.InFinallyBlock));
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (3)
664
else if (binder.Flags.
Includes
(BinderFlags.CollectionInitializerAddMethod))
1111
if (flags.
Includes
(BinderFlags.CollectionInitializerAddMethod))
1130
if (flags.
Includes
(BinderFlags.CollectionExpressionConversionValidation))
Compilation\CSharpSemanticModel.cs (2)
259
if (bindingOption == SpeculativeBindingOption.BindAsTypeOrNamespace || binder.Flags.
Includes
(BinderFlags.CrefParameterOrReturnType))
296
if (binder.Flags.
Includes
(BinderFlags.CrefParameterOrReturnType))
Symbols\Compilation_WellKnownMembers.cs (1)
125
bool ignoreCorLibraryDuplicatedTypes = this.Options.TopLevelBinderFlags.
Includes
(BinderFlags.IgnoreCorLibraryDuplicatedTypes);
Symbols\ConstraintsHelper.cs (2)
359
Debug.Assert(!withTypeParametersBinder.Flags.
Includes
(BinderFlags.GenericConstraintsClause));
397
Debug.Assert(!withTypeParametersBinder.Flags.
Includes
(BinderFlags.GenericConstraintsClause));
Symbols\ObsoleteAttributeHelpers.cs (2)
173
if (location.
Includes
(BinderFlags.SuppressObsoleteChecks))
198
var isColInit = location.
Includes
(BinderFlags.CollectionInitializerAddMethod);
Symbols\Source\SourceNamedTypeSymbol.cs (2)
350
Debug.Assert(!binder.Flags.
Includes
(BinderFlags.GenericConstraintsClause));
431
Debug.Assert(!binder.Flags.
Includes
(BinderFlags.GenericConstraintsClause));