53 references to GetEnclosingBinder
Microsoft.CodeAnalysis.CSharp (32)
Compilation\CSharpSemanticModel.cs (17)
217Binder binder = this.GetEnclosingBinder(position); 243var binder = this.GetEnclosingBinder(position); 334var binder = this.GetEnclosingBinder(position); 810var binder = memberModel.GetEnclosingBinder(position); 1585var binder = GetEnclosingBinder(position); 1833var binder = this.GetEnclosingBinder(position); 2219var binder = this.GetEnclosingBinder(boundExpr.Syntax.Span.Start); 2862var binder = this.GetEnclosingBinder(position); 2914var binder = this.GetEnclosingBinder(position); 3277Binder enclosingBinder = this.GetEnclosingBinder(GetAdjustedNodePosition(forEachStatement)); 3315Binder enclosingBinder = this.GetEnclosingBinder(GetAdjustedNodePosition(catchClause)); 3693Binder binder = binderOpt ?? GetEnclosingBinder(GetAdjustedNodePosition(boundNode.Syntax)); 4044Binder binder = binderOpt ?? GetEnclosingBinder(GetAdjustedNodePosition(lowestBoundNode.Syntax)); 4104Binder binder = binderOpt ?? GetEnclosingBinder(GetAdjustedNodePosition(boundNode.Syntax)); 4265Binder binder = binderOpt ?? GetEnclosingBinder(GetAdjustedNodePosition(boundNode.Syntax)); 4914var binder = GetEnclosingBinder(position); 5412var binder = GetEnclosingBinder(position);
Compilation\InitializerSemanticModel.cs (1)
205var binder = this.GetEnclosingBinder(position);
Compilation\MemberSemanticModel.cs (5)
695for (var binder = this.GetEnclosingBinder(GetAdjustedNodePosition(declarationSyntax)); binder != null; binder = binder.Next) 717var originalSymbol = GetDeclaredLocalFunction(this.GetEnclosingBinder(GetAdjustedNodePosition(declarationSyntax)), declarationSyntax.Identifier); 756var binder = this.GetEnclosingBinder(GetAdjustedNodePosition(declarationSyntax)); 782var binder = this.GetEnclosingBinder(GetAdjustedNodePosition(declarationSyntax)); 2030binder = GetEnclosingBinder(GetAdjustedNodePosition(nodeToBind));
Compilation\MethodBodySemanticModel.cs (4)
205var binder = this.GetEnclosingBinder(position); 223var binder = this.GetEnclosingBinder(position); 243var binder = this.GetEnclosingBinder(position); 265var binder = this.GetEnclosingBinder(position);
Compilation\SyntaxTreeSemanticModel.cs (5)
163return memberModel.GetEnclosingBinder(position); 225var binder = this.GetEnclosingBinder(GetAdjustedNodePosition(node)); 251var binder = this.GetEnclosingBinder(GetAdjustedNodePosition(node)); 334var binder = this.GetEnclosingBinder(GetAdjustedNodePosition(node)); 619Binder binder = GetEnclosingBinder(position);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (12)
Semantics\PatternMatchingTestBase.cs (1)
460var binder = model.GetEnclosingBinder(node.SpanStart);
Semantics\PatternMatchingTests4.cs (11)
4019var binder = model.GetEnclosingBinder(@switch.SpanStart); 4088var binder = model.GetEnclosingBinder(@switch.SpanStart); 4161var binder = model.GetEnclosingBinder(@switch.SpanStart); 4233var binder = model.GetEnclosingBinder(@is.SpanStart); 4277var binder = model.GetEnclosingBinder(@switch.SpanStart); 4324var binder = model.GetEnclosingBinder(@switch.SpanStart); 4406var binder = model.GetEnclosingBinder(@switch.SpanStart); 4488var binder = model.GetEnclosingBinder(@switch.SpanStart); 4570var binder = model.GetEnclosingBinder(@switch.SpanStart); 4652var binder = model.GetEnclosingBinder(@switch.SpanStart); 4736var binder = model.GetEnclosingBinder(@switch.SpanStart);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\LambdaTests.cs (2)
8158var methodBinder = getBinder<BlockBinder>(methodModel.GetEnclosingBinder(methodSyntax.Body.SpanStart)); 8159var defaultValueBinder = getBinder<BlockBinder>(defaultValueModel.GetEnclosingBinder(defaultValue.SpanStart));
Semantics\LookupTests.cs (2)
428var binder = ((CSharpSemanticModel)model).GetEnclosingBinder(position); 584var binder = ((CSharpSemanticModel)model).GetEnclosingBinder(position);
Semantics\OperatorTests.cs (2)
7332var binder = model.GetEnclosingBinder(methodBody.SpanStart); 8816var binder = model.GetEnclosingBinder(methodBody.SpanStart);
Semantics\UnsafeTests.cs (1)
5200var binder = ((CSharpSemanticModel)model).GetEnclosingBinder(methodBody.SpanStart);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelAPITests.cs (1)
2271var binder = ((CSharpSemanticModel)speculativeModel).GetEnclosingBinder(initializer.SpanStart);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
2171var binder = ((CSharpSemanticModel)model).GetEnclosingBinder(pos);