16 references to LookupLabels
Microsoft.CodeAnalysis (2)
Compilation\SemanticModel.cs (2)
446/// Labels are not considered (see <see cref="LookupLabels"/>). 609/// Backing implementation of <see cref="LookupLabels"/>.
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
Semantics\LookupPositionTests.cs (2)
2273var symbols = model.LookupLabels(source.ToString().IndexOf("label1;", StringComparison.Ordinal)); 2301var symbols = model.LookupLabels(source.ToString().IndexOf("HERE", StringComparison.Ordinal));
Semantics\ScriptSemanticsTests.cs (1)
510Assert.Empty(model.LookupLabels(source.Length - 1)); // Used to assert.
Semantics\TopLevelStatementsTests.cs (8)
2431Assert.Same(declSymbol, model1.LookupLabels(labelDecl.SpanStart).Single()); 2432Assert.Same(declSymbol, model1.LookupLabels(labelDecl.SpanStart, name: "Test").Single()); 2448Assert.Empty(model1.LookupLabels(nameRef.SpanStart)); 2449Assert.Empty(model1.LookupLabels(nameRef.SpanStart, name: "Test")); 2463Assert.Same(declSymbol, model1.LookupLabels(nameRef.SpanStart).Single()); 2464Assert.Same(declSymbol, model1.LookupLabels(nameRef.SpanStart, name: "Test").Single()); 2506Assert.Empty(model2.LookupLabels(nameRef.SpanStart)); 2507Assert.Empty(model2.LookupLabels(nameRef.SpanStart, name: "Test"));
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Recommendations\CSharpRecommendationServiceRunner.cs (1)
235var allLabels = _context.SemanticModel.LookupLabels(_context.LeftToken.SpanStart);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
CodeGen\CodeGenScriptTests.vb (1)
264Assert.Empty(model.LookupLabels(source.Length - 1))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Recommendations\VisualBasicRecommendationServiceRunner.vb (1)
110Return _context.SemanticModel.LookupLabels(_context.TargetToken.SpanStart)