59 references to GetEnclosingBinder
Microsoft.CodeAnalysis.CSharp (38)
Compilation\CSharpSemanticModel.cs (18)
216
Binder binder = this.
GetEnclosingBinder
(position);
242
var binder = this.
GetEnclosingBinder
(position);
333
var binder = this.
GetEnclosingBinder
(position);
807
var binder = memberModel.
GetEnclosingBinder
(position);
880
var binder = memberModel.
GetEnclosingBinder
(LookupPosition.IsBetweenTokens(position, argumentList.OpenParenToken, argumentList.CloseParenToken) ? position : argumentList.OpenParenToken.SpanStart);
1582
var binder =
GetEnclosingBinder
(position);
1843
var binder = this.
GetEnclosingBinder
(position);
2206
var binder = this.
GetEnclosingBinder
(boundExpr.Syntax.Span.Start);
2844
var binder = this.
GetEnclosingBinder
(position);
2896
var binder = this.
GetEnclosingBinder
(position);
3259
Binder enclosingBinder = this.
GetEnclosingBinder
(GetAdjustedNodePosition(forEachStatement));
3297
Binder enclosingBinder = this.
GetEnclosingBinder
(GetAdjustedNodePosition(catchClause));
3670
Binder binder = binderOpt ??
GetEnclosingBinder
(GetAdjustedNodePosition(boundNode.Syntax));
4020
Binder binder = binderOpt ??
GetEnclosingBinder
(GetAdjustedNodePosition(lowestBoundNode.Syntax));
4080
Binder binder = binderOpt ??
GetEnclosingBinder
(GetAdjustedNodePosition(boundNode.Syntax));
4238
Binder binder = binderOpt ??
GetEnclosingBinder
(GetAdjustedNodePosition(boundNode.Syntax));
4885
var binder =
GetEnclosingBinder
(position);
5317
var binder =
GetEnclosingBinder
(position);
Compilation\InitializerSemanticModel.cs (1)
205
var binder = this.
GetEnclosingBinder
(position);
Compilation\MemberSemanticModel.cs (5)
684
for (var binder = this.
GetEnclosingBinder
(GetAdjustedNodePosition(declarationSyntax)); binder != null; binder = binder.Next)
706
var originalSymbol = GetDeclaredLocalFunction(this.
GetEnclosingBinder
(GetAdjustedNodePosition(declarationSyntax)), declarationSyntax.Identifier);
745
var binder = this.
GetEnclosingBinder
(GetAdjustedNodePosition(declarationSyntax));
771
var binder = this.
GetEnclosingBinder
(GetAdjustedNodePosition(declarationSyntax));
2007
binder =
GetEnclosingBinder
(GetAdjustedNodePosition(nodeToBind));
Compilation\MethodBodySemanticModel.cs (4)
208
var binder = this.
GetEnclosingBinder
(position);
226
var binder = this.
GetEnclosingBinder
(position);
246
var binder = this.
GetEnclosingBinder
(position);
268
var binder = this.
GetEnclosingBinder
(position);
Compilation\SpeculativeSemanticModelWithMemberModel.cs (2)
178
(binder: containing.
GetEnclosingBinder
(attribute.SpanStart), model: containing));
196
tuple.containing.
GetEnclosingBinder
(tuple.paramDecl.SpanStart).
Compilation\SyntaxTreeSemanticModel.cs (8)
159
return memberModel.
GetEnclosingBinder
(position);
221
var binder = this.
GetEnclosingBinder
(GetAdjustedNodePosition(node));
247
var binder = this.
GetEnclosingBinder
(GetAdjustedNodePosition(node));
330
var binder = this.
GetEnclosingBinder
(GetAdjustedNodePosition(node));
615
Binder binder =
GetEnclosingBinder
(position);
982
(binder: containing.
GetEnclosingBinder
(attribute.SpanStart), model: containing));
1021
tuple.containing.
GetEnclosingBinder
(tuple.paramDecl.SpanStart).
1853
Binder binder =
GetEnclosingBinder
(declarationSyntax.Position);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (12)
Semantics\PatternMatchingTestBase.cs (1)
452
var binder = model.
GetEnclosingBinder
(node.SpanStart);
Semantics\PatternMatchingTests4.cs (11)
3968
var binder = model.
GetEnclosingBinder
(@switch.SpanStart);
4037
var binder = model.
GetEnclosingBinder
(@switch.SpanStart);
4110
var binder = model.
GetEnclosingBinder
(@switch.SpanStart);
4182
var binder = model.
GetEnclosingBinder
(@is.SpanStart);
4226
var binder = model.
GetEnclosingBinder
(@switch.SpanStart);
4273
var binder = model.
GetEnclosingBinder
(@switch.SpanStart);
4355
var binder = model.
GetEnclosingBinder
(@switch.SpanStart);
4437
var binder = model.
GetEnclosingBinder
(@switch.SpanStart);
4519
var binder = model.
GetEnclosingBinder
(@switch.SpanStart);
4601
var binder = model.
GetEnclosingBinder
(@switch.SpanStart);
4685
var binder = model.
GetEnclosingBinder
(@switch.SpanStart);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\LambdaTests.cs (2)
8132
var methodBinder = getBinder<BlockBinder>(methodModel.
GetEnclosingBinder
(methodSyntax.Body.SpanStart));
8133
var defaultValueBinder = getBinder<BlockBinder>(defaultValueModel.
GetEnclosingBinder
(defaultValue.SpanStart));
Semantics\LookupTests.cs (2)
428
var binder = ((CSharpSemanticModel)model).
GetEnclosingBinder
(position);
584
var binder = ((CSharpSemanticModel)model).
GetEnclosingBinder
(position);
Semantics\OperatorTests.cs (2)
7331
var binder = model.
GetEnclosingBinder
(methodBody.SpanStart);
8814
var binder = model.
GetEnclosingBinder
(methodBody.SpanStart);
Semantics\UnsafeTests.cs (1)
2388
var binder = ((CSharpSemanticModel)model).
GetEnclosingBinder
(methodBody.SpanStart);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelAPITests.cs (1)
2271
var binder = ((CSharpSemanticModel)speculativeModel).
GetEnclosingBinder
(initializer.SpanStart);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
2171
var binder = ((CSharpSemanticModel)model).
GetEnclosingBinder
(pos);