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