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