9 references to WithContainingMemberOrLambda
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Expressions.cs (1)
487
var binder = new LocalScopeBinder(this.
WithContainingMemberOrLambda
(parameter.ContainingSymbol).WithAdditionalFlags(BinderFlags.ParameterDefaultValue));
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
1207
result = result.
WithContainingMemberOrLambda
(outerBinder.ContainingMemberOrLambda);
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (1)
554
binder = binder.
WithContainingMemberOrLambda
(containingSymbol);
Symbols\Source\GlobalExpressionVariable.cs (1)
190
binder = binder.
WithContainingMemberOrLambda
(_containingFieldOpt).WithAdditionalFlags(BinderFlags.FieldInitializer);
Symbols\Source\SourceComplexParameterSymbol.cs (2)
1574
var binder = GetDefaultParameterValueBinder(syntax).
WithContainingMemberOrLambda
(ContainingSymbol); // this binder is good for our purpose
1633
var binder = GetDefaultParameterValueBinder(syntax).
WithContainingMemberOrLambda
(ContainingSymbol); // this binder is good for our purpose
Symbols\Source\SourceConstructorSymbolBase.cs (1)
42
var bodyBinder = binderFactory.GetBinder(parameterList, syntax, this).
WithContainingMemberOrLambda
(this);
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);