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)
2273
var symbols = model.
LookupLabels
(source.ToString().IndexOf("label1;", StringComparison.Ordinal));
2301
var symbols = model.
LookupLabels
(source.ToString().IndexOf("HERE", StringComparison.Ordinal));
Semantics\ScriptSemanticsTests.cs (1)
510
Assert.Empty(model.
LookupLabels
(source.Length - 1)); // Used to assert.
Semantics\TopLevelStatementsTests.cs (8)
2443
Assert.Same(declSymbol, model1.
LookupLabels
(labelDecl.SpanStart).Single());
2444
Assert.Same(declSymbol, model1.
LookupLabels
(labelDecl.SpanStart, name: "Test").Single());
2460
Assert.Empty(model1.
LookupLabels
(nameRef.SpanStart));
2461
Assert.Empty(model1.
LookupLabels
(nameRef.SpanStart, name: "Test"));
2475
Assert.Same(declSymbol, model1.
LookupLabels
(nameRef.SpanStart).Single());
2476
Assert.Same(declSymbol, model1.
LookupLabels
(nameRef.SpanStart, name: "Test").Single());
2518
Assert.Empty(model2.
LookupLabels
(nameRef.SpanStart));
2519
Assert.Empty(model2.
LookupLabels
(nameRef.SpanStart, name: "Test"));
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
CodeGen\CodeGenScriptTests.vb (1)
264
Assert.Empty(model.
LookupLabels
(source.Length - 1))