108 references to Labels
Microsoft.CodeAnalysis.CSharp (10)
Microsoft.CodeAnalysis.CSharp.CodeStyle (15)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
Microsoft.CodeAnalysis.CSharp.Features (15)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (31)
Parsing\StatementParsingTests.cs (29)
2161Assert.Equal(1, ss.Sections[0].Labels.Count);
2162Assert.NotEqual(default, ss.Sections[0].Labels[0].Keyword);
2163Assert.Equal(SyntaxKind.CaseKeyword, ss.Sections[0].Labels[0].Keyword.Kind());
2164var caseLabelSyntax = ss.Sections[0].Labels[0] as CaseSwitchLabelSyntax;
2197Assert.Equal(1, ss.Sections[0].Labels.Count);
2198Assert.NotEqual(default, ss.Sections[0].Labels[0].Keyword);
2199Assert.Equal(SyntaxKind.CaseKeyword, ss.Sections[0].Labels[0].Keyword.Kind());
2200var caseLabelSyntax = ss.Sections[0].Labels[0] as CaseSwitchLabelSyntax;
2208Assert.Equal(1, ss.Sections[1].Labels.Count);
2209Assert.NotEqual(default, ss.Sections[1].Labels[0].Keyword);
2210Assert.Equal(SyntaxKind.CaseKeyword, ss.Sections[1].Labels[0].Keyword.Kind());
2211var caseLabelSyntax2 = ss.Sections[1].Labels[0] as CaseSwitchLabelSyntax;
2244Assert.Equal(1, ss.Sections[0].Labels.Count);
2245Assert.NotEqual(default, ss.Sections[0].Labels[0].Keyword);
2246Assert.Equal(SyntaxKind.DefaultKeyword, ss.Sections[0].Labels[0].Keyword.Kind());
2247Assert.Equal(SyntaxKind.DefaultSwitchLabel, ss.Sections[0].Labels[0].Kind());
2248Assert.NotEqual(default, ss.Sections[0].Labels[0].ColonToken);
2277Assert.Equal(2, ss.Sections[0].Labels.Count);
2278Assert.NotEqual(default, ss.Sections[0].Labels[0].Keyword);
2279Assert.Equal(SyntaxKind.CaseKeyword, ss.Sections[0].Labels[0].Keyword.Kind());
2280var caseLabelSyntax = ss.Sections[0].Labels[0] as CaseSwitchLabelSyntax;
2284Assert.NotEqual(default, ss.Sections[0].Labels[1].Keyword);
2285Assert.Equal(SyntaxKind.CaseKeyword, ss.Sections[0].Labels[1].Keyword.Kind());
2286var caseLabelSyntax2 = ss.Sections[0].Labels[1] as CaseSwitchLabelSyntax;
2290Assert.NotEqual(default, ss.Sections[0].Labels[0].ColonToken);
2319Assert.Equal(1, ss.Sections[0].Labels.Count);
2320Assert.NotEqual(default, ss.Sections[0].Labels[0].Keyword);
2321Assert.Equal(SyntaxKind.CaseKeyword, ss.Sections[0].Labels[0].Keyword.Kind());
2322var caseLabelSyntax = ss.Sections[0].Labels[0] as CaseSwitchLabelSyntax;
Microsoft.CodeAnalysis.CSharp.Workspaces (14)
Roslyn.Diagnostics.CSharp.Analyzers (14)