37 references to WithAdditionalFlags
Microsoft.CodeAnalysis.CSharp (37)
Binder\Binder_Attributes.cs (1)
158binder = binder.WithAdditionalFlags(BinderFlags.AttributeArgument);
Binder\Binder_Crefs.cs (1)
961Binder parameterOrReturnTypeBinder = this.WithAdditionalFlags(BinderFlags.CrefParameterOrReturnType);
Binder\Binder_Expressions.cs (3)
487var binder = new LocalScopeBinder(this.WithContainingMemberOrLambda(parameter.ContainingSymbol).WithAdditionalFlags(BinderFlags.ParameterDefaultValue)); 5634? this.WithAdditionalFlags(BinderFlags.ObjectInitializerMember) 6217var collectionInitializerAddMethodBinder = this.WithAdditionalFlags(BinderFlags.CollectionInitializerAddMethod);
Binder\Binder_Symbols.cs (1)
1359? this.WithAdditionalFlags(BinderFlags.SuppressUnsafeDiagnostics)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
1409binder = binder.WithAdditionalFlags(flags);
Binder\LocalBinderFactory.cs (7)
184Binder enclosing = new ExpressionVariableBinder(node, _enclosing).WithAdditionalFlags(BinderFlags.ConstructorInitializer); 496var binder = _enclosing.WithAdditionalFlags(BinderFlags.ConstructorInitializer); 688Binder binder = _enclosing.WithAdditionalFlags(BinderFlags.UnsafeRegion); 721Binder statementBinder = lockBinder.WithAdditionalFlags(BinderFlags.InLockBody); 860Visit(node.Block, _enclosing.WithAdditionalFlags(BinderFlags.InTryBlockOfTryCatch)); 886Binder filterBinder = clauseBinder.WithAdditionalFlags(BinderFlags.InCatchFilter); 917Visit(node.Block, _enclosing.WithAdditionalFlags(additionalFlags));
Compilation\CSharpSemanticModel.cs (1)
4618binder = binder.WithAdditionalFlags(BinderFlags.SemanticModel);
Compilation\MemberSemanticModel.cs (4)
61this.RootBinder = rootBinder.WithAdditionalFlags(GetSemanticModelBinderFlags()); 217return GetEnclosingBinderInternalWithinRoot(node, position, RootBinder, _root).WithAdditionalFlags(GetSemanticModelBinderFlags()); 1759return result.WithAdditionalFlags(GetSemanticModelBinderFlags()); 2412return new IncrementalBinder(_semanticModel, binder.WithAdditionalFlags(BinderFlags.SemanticModel));
Compilation\MethodBodySemanticModel.cs (1)
189var blockBinder = executablebinder.GetBinder(body).WithAdditionalFlags(GetSemanticModelBinderFlags());
Compilation\PublicSemanticModel.cs (1)
31enclosingBinder.WithAdditionalFlags(BinderFlags.AttributeArgument),
Compilation\SyntaxTreeSemanticModel.cs (3)
157return _binderFactory.GetBinder(this.Root, position).WithAdditionalFlags(GetSemanticModelBinderFlags()); 166return _binderFactory.GetBinder((CSharpSyntaxNode)token.Parent, position).WithAdditionalFlags(GetSemanticModelBinderFlags()); 1072Binder defaultOuter() => _binderFactory.GetBinder(node).WithAdditionalFlags(this.IgnoresAccessibility ? BinderFlags.IgnoreAccessibility : BinderFlags.None);
Symbols\AliasSymbol.cs (1)
403.WithAdditionalFlags(flags);
Symbols\ConstraintsHelper.cs (2)
360withTypeParametersBinder = withTypeParametersBinder.WithAdditionalFlags(BinderFlags.GenericConstraintsClause | BinderFlags.SuppressConstraintChecks); 398withTypeParametersBinder = withTypeParametersBinder.WithAdditionalFlags(BinderFlags.GenericConstraintsClause | BinderFlags.SuppressConstraintChecks | BinderFlags.SuppressTypeArgumentBinding);
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
51binder = binder.WithAdditionalFlags(BinderFlags.SuppressConstraintChecks | BinderFlags.SuppressObsoleteChecks);
Symbols\Source\GlobalExpressionVariable.cs (1)
190binder = binder.WithContainingMemberOrLambda(_containingFieldOpt).WithAdditionalFlags(BinderFlags.FieldInitializer);
Symbols\Source\SourceMemberMethodSymbol.cs (1)
769return inMethod == null ? null : new ExecutableCodeBinder(SyntaxNode, this, inMethod.WithAdditionalFlags(ignoreAccessibility ? BinderFlags.IgnoreAccessibility : BinderFlags.None));
Symbols\Source\SourceNamedTypeSymbol.cs (2)
351binder = binder.WithContainingMemberOrLambda(this).WithAdditionalFlags(BinderFlags.GenericConstraintsClause | BinderFlags.SuppressConstraintChecks); 432binder = binder.WithContainingMemberOrLambda(this).WithAdditionalFlags(BinderFlags.GenericConstraintsClause | BinderFlags.SuppressConstraintChecks | BinderFlags.SuppressTypeArgumentBinding);
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (1)
765declarationBinder ??= compilation.GetBinderFactory(declarationSyntax.SyntaxTree).GetBinder(usingDirective.NamespaceOrType).WithAdditionalFlags(flags);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
169declaredConstraints = signatureBinder.WithAdditionalFlags(BinderFlags.GenericConstraintsClause | BinderFlags.SuppressConstraintChecks).
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
229var signatureBinder = binder.WithAdditionalFlags(BinderFlags.SuppressConstraintChecks);
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
108return new ExecutableCodeBinder(SyntaxNode, this, result.WithAdditionalFlags(ignoreAccessibility ? BinderFlags.IgnoreAccessibility : BinderFlags.None));
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
229result = result.WithAdditionalFlags(ignoreAccessibility ? BinderFlags.IgnoreAccessibility : BinderFlags.None);