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