14 references to LookupLabels
Microsoft.CodeAnalysis (2)
Compilation\SemanticModel.cs (2)
459/// Labels are not considered (see <see cref="LookupLabels"/>). 622/// 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)
2443Assert.Same(declSymbol, model1.LookupLabels(labelDecl.SpanStart).Single()); 2444Assert.Same(declSymbol, model1.LookupLabels(labelDecl.SpanStart, name: "Test").Single()); 2460Assert.Empty(model1.LookupLabels(nameRef.SpanStart)); 2461Assert.Empty(model1.LookupLabels(nameRef.SpanStart, name: "Test")); 2475Assert.Same(declSymbol, model1.LookupLabels(nameRef.SpanStart).Single()); 2476Assert.Same(declSymbol, model1.LookupLabels(nameRef.SpanStart, name: "Test").Single()); 2518Assert.Empty(model2.LookupLabels(nameRef.SpanStart)); 2519Assert.Empty(model2.LookupLabels(nameRef.SpanStart, name: "Test"));
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
CodeGen\CodeGenScriptTests.vb (1)
264Assert.Empty(model.LookupLabels(source.Length - 1))