132 references to LookupNames
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenDeconstructTests.cs (4)
3584
Assert.True(model.
LookupNames
(decl.SpanStart).Contains(decl.Identifier.ValueText));
3604
Assert.True(model.
LookupNames
(reference.SpanStart).Contains(decl.Identifier.ValueText));
3617
Assert.True(model.
LookupNames
(decl.SpanStart).Contains(decl.Identifier.ValueText));
3623
Assert.True(model.
LookupNames
(reference.SpanStart).Contains(decl.Identifier.ValueText));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (67)
Semantics\OutVarTests.cs (10)
983
Assert.True(model.
LookupNames
(decl.SpanStart).Contains(decl.Identifier().ValueText));
993
Assert.True(model.
LookupNames
(reference.SpanStart).Contains(decl.Identifier().ValueText));
1146
Assert.True(model.
LookupNames
(decl.SpanStart).Contains(decl.Identifier().ValueText));
1157
Assert.False(model.
LookupNames
(reference.SpanStart).Contains(reference.Identifier.ValueText));
1167
Assert.True(model.
LookupNames
(reference.SpanStart).Contains(reference.Identifier.ValueText));
1198
Assert.True(model.
LookupNames
(reference.SpanStart).Contains(reference.Identifier.ValueText));
22706
Assert.False(model.
LookupNames
(decl.SpanStart).Contains(identifierText));
22720
Assert.DoesNotContain(reference.Identifier.ValueText, model.
LookupNames
(reference.SpanStart));
32739
var names = model.
LookupNames
(decl.SpanStart);
32782
Assert.True(model.
LookupNames
(reference.SpanStart).Contains(decl.Identifier().ValueText));
Semantics\PatternMatchingTestBase.cs (12)
97
Assert.True(model.
LookupNames
(designation.SpanStart).Contains(designation.Identifier.ValueText));
127
Assert.True(model.
LookupNames
(reference.SpanStart).Contains(designation.Identifier.ValueText));
148
Assert.True(model.
LookupNames
(designation.SpanStart).Contains(designation.Identifier.ValueText));
174
Assert.True(model.
LookupNames
(declarator.SpanStart).Contains(declarator.Identifier.ValueText));
188
Assert.True(model.
LookupNames
(designation.SpanStart).Contains(designation.Identifier.ValueText));
198
Assert.True(model.
LookupNames
(reference.SpanStart).Contains(reference.Identifier.ValueText));
212
Assert.True(model.
LookupNames
(reference.SpanStart).Contains(reference.Identifier.ValueText));
219
Assert.False(model.
LookupNames
(reference.SpanStart).Contains(reference.Identifier.ValueText));
251
var names = model.
LookupNames
(designation.SpanStart);
318
Assert.True(model.
LookupNames
(reference.SpanStart).Contains(designation.Identifier.ValueText));
379
Assert.False(model.
LookupNames
(designation.SpanStart).Contains(identifierText));
421
Assert.DoesNotContain(reference.Identifier.ValueText, model.
LookupNames
(reference.SpanStart));
Semantics\PrimaryConstructorTests.cs (25)
1014
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
1082
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
1309
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
1322
Assert.Contains("y", model.
LookupNames
(x.SpanStart));
1332
Assert.Contains("Test", model.
LookupNames
(x.SpanStart));
1374
Assert.DoesNotContain("X", model.
LookupNames
(x.SpanStart));
1420
Assert.DoesNotContain("X", model.
LookupNames
(x.SpanStart));
1480
Assert.DoesNotContain("X", model.
LookupNames
(x.SpanStart));
1538
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
1549
Assert.DoesNotContain("X", model.
LookupNames
(x.SpanStart));
1627
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
1638
Assert.DoesNotContain("X", model.
LookupNames
(x.SpanStart));
1823
Assert.DoesNotContain("X", model.
LookupNames
(x.SpanStart));
1863
Assert.DoesNotContain("X", model.
LookupNames
(x.SpanStart));
1904
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
1976
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
2434
Assert.DoesNotContain("X", model.
LookupNames
(x.SpanStart));
2650
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
2688
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
2725
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
2761
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
7806
Assert.DoesNotContain("p1", model.
LookupNames
(p1.SpanStart));
7834
Assert.Contains("p1", model.
LookupNames
(p1.SpanStart));
8764
Assert.Contains("p1", model.
LookupNames
(p1.SpanStart));
9170
Assert.Contains("p1", model.
LookupNames
(p1.SpanStart));
Semantics\RecordTests.cs (20)
21154
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
21383
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
21396
Assert.Contains("y", model.
LookupNames
(x.SpanStart));
21406
Assert.Contains("Test", model.
LookupNames
(x.SpanStart));
21448
Assert.DoesNotContain("X", model.
LookupNames
(x.SpanStart));
21494
Assert.DoesNotContain("X", model.
LookupNames
(x.SpanStart));
21554
Assert.DoesNotContain("X", model.
LookupNames
(x.SpanStart));
21612
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
21623
Assert.DoesNotContain("X", model.
LookupNames
(x.SpanStart));
21701
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
21712
Assert.DoesNotContain("X", model.
LookupNames
(x.SpanStart));
21897
Assert.DoesNotContain("X", model.
LookupNames
(x.SpanStart));
21934
Assert.DoesNotContain("X", model.
LookupNames
(x.SpanStart));
21972
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
22009
Assert.DoesNotContain("X", model.
LookupNames
(x.SpanStart));
22088
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
24652
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
24687
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
24721
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
24756
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (51)
Semantics\BindingTests.cs (1)
3383
var names = model.
LookupNames
(node1.SpanStart);
Semantics\ExpressionBodiedMemberTests.cs (2)
540
Assert.Contains("P1", model.
LookupNames
(tree.GetRoot().DescendantNodes().OfType<ConstructorDeclarationSyntax>().Single().Body.Position));
580
Assert.Contains("P1", model.
LookupNames
(tree.GetRoot().DescendantNodes().OfType<DestructorDeclarationSyntax>().Single().Body.Position));
Semantics\LambdaTests.cs (1)
8230
var names = model.
LookupNames
(GetPositionForBinding(source));
Semantics\LookupTests.cs (5)
31
return model.
LookupNames
(position);
594
var actual_lookupNames = model.
LookupNames
(position);
631
var actual_lookupNames = model.
LookupNames
(GetPositionForBinding(tree), null).ToList();
632
var actual_lookupNames_ignoreAcc = model.
LookupNames
(GetPositionForBinding(tree), null).ToList();
697
var names = model.
LookupNames
(baseExprLocation, useBaseReferenceAccessibility: true);
Semantics\RecordStructTests.cs (4)
2603
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
2638
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
2672
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
2707
Assert.Contains("X", model.
LookupNames
(x.SpanStart));
Semantics\TopLevelStatementsTests.cs (38)
197
Assert.Contains(refSymbol.Name, model1.
LookupNames
(localRef.SpanStart));
240
Assert.Contains(declSymbol.Name, model1.
LookupNames
(localDecl.SpanStart));
325
Assert.DoesNotContain(name, model1.
LookupNames
(localRef.SpanStart));
363
Assert.Contains(declSymbol.Name, model2.
LookupNames
(localDecl.SpanStart));
484
Assert.Contains(declSymbol.Name, model1.
LookupNames
(localDecl.SpanStart));
493
Assert.Contains(declSymbol.Name, model1.
LookupNames
(localFuncRef.SpanStart));
504
Assert.DoesNotContain(name, model2.
LookupNames
(localRef.SpanStart));
536
Assert.Contains(declSymbol.Name, model1.
LookupNames
(localDecl.SpanStart));
547
Assert.Contains(declSymbol.Name, model1.
LookupNames
(localRef.SpanStart));
576
Assert.Contains(declSymbol.Name, model1.
LookupNames
(localDecl.SpanStart));
585
Assert.Contains(declSymbol.Name, model1.
LookupNames
(localFuncRef.SpanStart));
594
Assert.Contains(refSymbol.Name, model1.
LookupNames
(localRef.SpanStart));
1688
var names = model1.
LookupNames
(localDecl.SpanStart);
1720
names = model.
LookupNames
(nameRef.SpanStart);
1735
Assert.DoesNotContain(getHashCode.Name, model.
LookupNames
(nameRef.SpanStart));
1751
Assert.DoesNotContain(getHashCode.Name, model.
LookupNames
(nameRef.SpanStart));
1761
var names = model.
LookupNames
(nameRef.SpanStart);
1861
var names = model1.
LookupNames
(localDecl.SpanStart);
1888
names = model2.
LookupNames
(nameRef.SpanStart);
1903
Assert.DoesNotContain(getHashCode.Name, model2.
LookupNames
(nameRef.SpanStart));
1919
Assert.DoesNotContain(getHashCode.Name, model2.
LookupNames
(nameRef.SpanStart));
1929
var names = model2.
LookupNames
(nameRef.SpanStart);
2087
var names = model1.
LookupNames
(localDecl.SpanStart);
2106
names = model1.
LookupNames
(nameRef.SpanStart);
2142
var names = model2.
LookupNames
(nameRef.SpanStart);
2251
var names = model1.
LookupNames
(localDecl.SpanStart);
2272
names = model2.
LookupNames
(nameRef.SpanStart);
2308
var names = model2.
LookupNames
(nameRef.SpanStart);
2430
var names = model1.
LookupNames
(labelDecl.SpanStart);
2452
names = model1.
LookupNames
(nameRef.SpanStart);
2467
names = model1.
LookupNames
(nameRef.SpanStart);
2505
var names = model2.
LookupNames
(nameRef.SpanStart);
3947
var names = model.
LookupNames
(nameRef.SpanStart);
3961
names = model.
LookupNames
(nameRef.SpanStart);
4001
var names = model.
LookupNames
(nameRef.SpanStart);
4096
var names = model.
LookupNames
(nameRef.SpanStart);
4131
var names = model.
LookupNames
(nameRef.SpanStart);
6041
Assert.Contains(declSymbol.Name, model1.
LookupNames
(localRef.SpanStart));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Compilation\IndexedProperties_BindingTests.cs (1)
159
var actual_lookupNames = model.
LookupNames
(position);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (6)
1215
var namesInC = model.
LookupNames
(positionInC, namespacesAndTypesOnly: true);
1224
var namesInM = model.
LookupNames
(methodM.Body.SpanStart);
1250
var namesInA = model.
LookupNames
(someMemberInA.SpanStart);
1284
var namesInC = model.
LookupNames
(someMemberInC.SpanStart);
1335
var names = model.
LookupNames
(methodDecl.SpanStart, paramSymbol.Type);
1347
names = model.
LookupNames
(methodDecl.SpanStart, paramSymbol.Type);
Symbols\Source\UsingAliasTests.cs (2)
448
var names = model.
LookupNames
(root.Members[0].SpanStart);
467
var names = model.
LookupNames
(root.Members[0].SpanStart);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
CodeGen\WinRTCollectionTests.cs (1)
7433
Assert.True(model.
LookupNames
(add.SpanStart, jsonObjType).Contains("Add"));