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