2 implementations of ILabelSymbol
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\LabelSymbol.cs (1)
9internal sealed class LabelSymbol : Symbol, ILabelSymbol
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\LabelSymbol.vb (1)
18Implements ILabelSymbol
276 references to ILabelSymbol
GenerateDocumentationAndConfigFiles (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
75/// Interior-method-level symbols (i.e. <see cref="ILabelSymbol"/>, <see cref="ILocalSymbol"/>, <see 320ILabelSymbol => true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
353public override void VisitLabel(ILabelSymbol labelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
462if (symbol is ILabelSymbol && newSymbol is ILabelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
122SymbolKind.Label => LabelsAreEquivalent((ILabelSymbol)x, (ILabelSymbol)y), 160private static bool LabelsAreEquivalent(ILabelSymbol x, ILabelSymbol y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
66SymbolKind.Label => CombineHashCodes((ILabelSymbol)x, currentHash), 99private static int CombineHashCodes(ILabelSymbol x, int currentHash)
Metrics (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
75/// Interior-method-level symbols (i.e. <see cref="ILabelSymbol"/>, <see cref="ILocalSymbol"/>, <see 320ILabelSymbol => true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
353public override void VisitLabel(ILabelSymbol labelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
462if (symbol is ILabelSymbol && newSymbol is ILabelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
122SymbolKind.Label => LabelsAreEquivalent((ILabelSymbol)x, (ILabelSymbol)y), 160private static bool LabelsAreEquivalent(ILabelSymbol x, ILabelSymbol y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
66SymbolKind.Label => CombineHashCodes((ILabelSymbol)x, currentHash), 99private static int CombineHashCodes(ILabelSymbol x, int currentHash)
Metrics.Legacy (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
75/// Interior-method-level symbols (i.e. <see cref="ILabelSymbol"/>, <see cref="ILocalSymbol"/>, <see 320ILabelSymbol => true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
353public override void VisitLabel(ILabelSymbol labelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
462if (symbol is ILabelSymbol && newSymbol is ILabelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
122SymbolKind.Label => LabelsAreEquivalent((ILabelSymbol)x, (ILabelSymbol)y), 160private static bool LabelsAreEquivalent(ILabelSymbol x, ILabelSymbol y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
66SymbolKind.Label => CombineHashCodes((ILabelSymbol)x, currentHash), 99private static int CombineHashCodes(ILabelSymbol x, int currentHash)
Microsoft.CodeAnalysis (44)
Generated\Operations.Generated.cs (36)
135ILabelSymbol ExitLabel { get; } 168ILabelSymbol ContinueLabel { get; } 172ILabelSymbol ExitLabel { get; } 344ILabelSymbol Label { get; } 373ILabelSymbol Target { get; } 490ILabelSymbol? ExitLabel { get; } 2682ILabelSymbol? Label { get; } 2717new ILabelSymbol Label { get; } 4151internal SwitchOperation(ImmutableArray<ILocalSymbol> locals, IOperation value, ImmutableArray<ISwitchCaseOperation> cases, ILabelSymbol exitLabel, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4162public ILabelSymbol ExitLabel { get; } 4221protected BaseLoopOperation(IOperation body, ImmutableArray<ILocalSymbol> locals, ILabelSymbol continueLabel, ILabelSymbol exitLabel, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4232public ILabelSymbol ContinueLabel { get; } 4233public ILabelSymbol ExitLabel { get; } 4237internal ForEachLoopOperation(IOperation loopControlVariable, IOperation collection, ImmutableArray<IOperation> nextVariables, ForEachLoopOperationInfo? info, bool isAsynchronous, IOperation body, ImmutableArray<ILocalSymbol> locals, ILabelSymbol continueLabel, ILabelSymbol exitLabel, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4327internal ForLoopOperation(ImmutableArray<IOperation> before, ImmutableArray<ILocalSymbol> conditionLocals, IOperation? condition, ImmutableArray<IOperation> atLoopBottom, IOperation body, ImmutableArray<ILocalSymbol> locals, ILabelSymbol continueLabel, ILabelSymbol exitLabel, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4419internal ForToLoopOperation(IOperation loopControlVariable, IOperation initialValue, IOperation limitValue, IOperation stepValue, bool isChecked, ImmutableArray<IOperation> nextVariables, (ILocalSymbol LoopObject, ForToLoopOperationUserDefinedInfo UserDefinedInfo) info, IOperation body, ImmutableArray<ILocalSymbol> locals, ILabelSymbol continueLabel, ILabelSymbol exitLabel, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4531internal WhileLoopOperation(IOperation? condition, bool conditionIsTop, bool conditionIsUntil, IOperation? ignoredCondition, IOperation body, ImmutableArray<ILocalSymbol> locals, ILabelSymbol continueLabel, ILabelSymbol exitLabel, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4555internal LabeledOperation(ILabelSymbol label, IOperation? operation, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4561public ILabelSymbol Label { get; } 4608internal BranchOperation(ILabelSymbol target, BranchKind branchKind, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4614public ILabelSymbol Target { get; } 4758internal TryOperation(IBlockOperation body, ImmutableArray<ICatchClauseOperation> catches, IBlockOperation? @finally, ILabelSymbol? exitLabel, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 4769public ILabelSymbol? ExitLabel { get; } 8164protected BaseCaseClauseOperation(ILabelSymbol? label, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 8170public ILabelSymbol? Label { get; } 8174internal DefaultCaseClauseOperation(ILabelSymbol? label, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 8188internal PatternCaseClauseOperation(ILabelSymbol label, IPatternOperation pattern, IOperation? guard, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 8194public new ILabelSymbol Label => base.Label!; 8251internal RangeCaseClauseOperation(IOperation minimumValue, IOperation maximumValue, ILabelSymbol? label, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 8313internal RelationalCaseClauseOperation(IOperation value, BinaryOperatorKind relation, ILabelSymbol? label, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit) 8366internal SingleValueCaseClauseOperation(IOperation value, ILabelSymbol? label, SemanticModel? semanticModel, SyntaxNode syntax, bool isImplicit)
Operations\ControlFlowGraphBuilder.cs (5)
37private PooledDictionary<ILabelSymbol, BasicBlockBuilder>? _labeledBlocks; 1186private static void CheckUnresolvedBranches(ArrayBuilder<BasicBlockBuilder> blocks, PooledDictionary<ILabelSymbol, BasicBlockBuilder>? labeledBlocks) 3865public void VisitLabel(ILabelSymbol operation) 3878private BasicBlockBuilder GetLabeledOrNewBlock(ILabelSymbol? labelOpt) 3889_labeledBlocks = PooledDictionary<ILabelSymbol, BasicBlockBuilder>.GetInstance();
Symbols\SymbolVisitor.cs (1)
53public virtual void VisitLabel(ILabelSymbol symbol)
Symbols\SymbolVisitor`1.cs (1)
56public virtual TResult? VisitLabel(ILabelSymbol symbol)
Symbols\SymbolVisitor`2.cs (1)
61public virtual TResult VisitLabel(ILabelSymbol symbol, TArgument argument)
Microsoft.CodeAnalysis.Analyzers (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
75/// Interior-method-level symbols (i.e. <see cref="ILabelSymbol"/>, <see cref="ILocalSymbol"/>, <see 320ILabelSymbol => true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
353public override void VisitLabel(ILabelSymbol labelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
462if (symbol is ILabelSymbol && newSymbol is ILabelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
122SymbolKind.Label => LabelsAreEquivalent((ILabelSymbol)x, (ILabelSymbol)y), 160private static bool LabelsAreEquivalent(ILabelSymbol x, ILabelSymbol y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
66SymbolKind.Label => CombineHashCodes((ILabelSymbol)x, currentHash), 99private static int CombineHashCodes(ILabelSymbol x, int currentHash)
Microsoft.CodeAnalysis.AnalyzerUtilities (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
75/// Interior-method-level symbols (i.e. <see cref="ILabelSymbol"/>, <see cref="ILocalSymbol"/>, <see 320ILabelSymbol => true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
353public override void VisitLabel(ILabelSymbol labelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
462if (symbol is ILabelSymbol && newSymbol is ILabelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
122SymbolKind.Label => LabelsAreEquivalent((ILabelSymbol)x, (ILabelSymbol)y), 160private static bool LabelsAreEquivalent(ILabelSymbol x, ILabelSymbol y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
66SymbolKind.Label => CombineHashCodes((ILabelSymbol)x, currentHash), 99private static int CombineHashCodes(ILabelSymbol x, int currentHash)
Microsoft.CodeAnalysis.BannedApiAnalyzers (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
75/// Interior-method-level symbols (i.e. <see cref="ILabelSymbol"/>, <see cref="ILocalSymbol"/>, <see 320ILabelSymbol => true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
353public override void VisitLabel(ILabelSymbol labelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
462if (symbol is ILabelSymbol && newSymbol is ILabelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
122SymbolKind.Label => LabelsAreEquivalent((ILabelSymbol)x, (ILabelSymbol)y), 160private static bool LabelsAreEquivalent(ILabelSymbol x, ILabelSymbol y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
66SymbolKind.Label => CombineHashCodes((ILabelSymbol)x, currentHash), 99private static int CombineHashCodes(ILabelSymbol x, int currentHash)
Microsoft.CodeAnalysis.CodeStyle (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
75/// Interior-method-level symbols (i.e. <see cref="ILabelSymbol"/>, <see cref="ILocalSymbol"/>, <see 320ILabelSymbol => true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
353public override void VisitLabel(ILabelSymbol labelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
462if (symbol is ILabelSymbol && newSymbol is ILabelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
122SymbolKind.Label => LabelsAreEquivalent((ILabelSymbol)x, (ILabelSymbol)y), 160private static bool LabelsAreEquivalent(ILabelSymbol x, ILabelSymbol y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
66SymbolKind.Label => CombineHashCodes((ILabelSymbol)x, currentHash), 99private static int CombineHashCodes(ILabelSymbol x, int currentHash)
Microsoft.CodeAnalysis.CSharp (28)
Compilation\CSharpSemanticModel.cs (2)
3186public abstract ILabelSymbol GetDeclaredSymbol(LabeledStatementSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken)); 3194public abstract ILabelSymbol GetDeclaredSymbol(SwitchLabelSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken));
Compilation\MemberSemanticModel.cs (2)
752public override ILabelSymbol GetDeclaredSymbol(LabeledStatementSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken)) 778public override ILabelSymbol GetDeclaredSymbol(SwitchLabelSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken))
Compilation\SpeculativeSemanticModelWithMemberModel.cs (2)
345public override ILabelSymbol GetDeclaredSymbol(LabeledStatementSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken)) 350public override ILabelSymbol GetDeclaredSymbol(SwitchLabelSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken))
Compilation\SyntaxTreeSemanticModel.cs (2)
1903public override ILabelSymbol GetDeclaredSymbol(LabeledStatementSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken)) 1917public override ILabelSymbol GetDeclaredSymbol(SwitchLabelSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken))
CSharpExtensions.cs (2)
1550public static ILabelSymbol? GetDeclaredSymbol(this SemanticModel? semanticModel, LabeledStatementSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken)) 1559public static ILabelSymbol? GetDeclaredSymbol(this SemanticModel? semanticModel, SwitchLabelSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken))
Operations\CSharpOperationFactory.cs (14)
1803ILabelSymbol target = boundContinueStatement.Label.GetPublicSymbol(); 1812ILabelSymbol target = boundBreakStatement.Label.GetPublicSymbol(); 1829ILabelSymbol target = boundGotoStatement.Label.GetPublicSymbol(); 1890ILabelSymbol continueLabel = boundWhileStatement.ContinueLabel.GetPublicSymbol(); 1891ILabelSymbol exitLabel = boundWhileStatement.BreakLabel.GetPublicSymbol(); 1903ILabelSymbol continueLabel = boundDoStatement.ContinueLabel.GetPublicSymbol(); 1904ILabelSymbol exitLabel = boundDoStatement.BreakLabel.GetPublicSymbol(); 1921ILabelSymbol continueLabel = boundForStatement.ContinueLabel.GetPublicSymbol(); 1922ILabelSymbol exitLabel = boundForStatement.BreakLabel.GetPublicSymbol(); 2028ILabelSymbol continueLabel = boundForEachStatement.ContinueLabel.GetPublicSymbol(); 2029ILabelSymbol exitLabel = boundForEachStatement.BreakLabel.GetPublicSymbol(); 2232ILabelSymbol label = boundLabelStatement.Label.GetPublicSymbol(); 2240ILabelSymbol label = boundLabeledStatement.Label.GetPublicSymbol(); 2730ILabelSymbol exitLabel = boundSwitchStatement.BreakLabel.GetPublicSymbol();
SymbolDisplay\SymbolDisplayVisitor.cs (1)
327public override void VisitLabel(ILabelSymbol symbol)
Symbols\PublicModel\LabelSymbol.cs (1)
21IMethodSymbol ILabelSymbol.ContainingMethod
Symbols\SymbolExtensions.cs (2)
629internal static ILabelSymbol? GetPublicSymbol(this LabelSymbol? symbol) 631return symbol.GetPublicSymbol<ILabelSymbol>();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\GotoTest.cs (2)
1150var symbol = model.GetDeclaredSymbol(label); 1163var symbol = model.GetDeclaredSymbol(label);
Microsoft.CodeAnalysis.CSharp.Features (1)
GoToDefinition\CSharpGoToDefinitionSymbolService.cs (1)
83var target = gotoOperation.Target;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\ScriptSemanticsTests.cs (1)
523var symbol0 = model.GetDeclaredSymbol((LabeledStatementSyntax)statements[0]);
Semantics\TopLevelStatementsTests.cs (5)
2463var declSymbol = model1.GetDeclaredSymbol(labelDecl); 4932var label = model.GetDeclaredSymbol(declarator); 4986var symbol1 = model1.GetDeclaredSymbol(tree1.GetRoot().DescendantNodes().OfType<LabeledStatementSyntax>().Single()); 4992var symbol2 = model2.GetDeclaredSymbol(tree2.GetRoot().DescendantNodes().OfType<LabeledStatementSyntax>().Single()); 5017var label = model.GetDeclaredSymbol(declarator);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SymbolVisitorTests.cs (2)
88public override void VisitLabel(ILabelSymbol symbol) 264public override string VisitLabel(ILabelSymbol symbol)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Classification\SyntaxClassification\NameSyntaxClassifier.cs (1)
223case ILabelSymbol:
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
AbstractTypeParameterChecker.cs (1)
135public sealed override void VisitLabel(ILabelSymbol symbol)
Microsoft.CodeAnalysis.Extensions.Package (6)
Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
122SymbolKind.Label => LabelsAreEquivalent((ILabelSymbol)x, (ILabelSymbol)y), 160private static bool LabelsAreEquivalent(ILabelSymbol x, ILabelSymbol y)
Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
66SymbolKind.Label => CombineHashCodes((ILabelSymbol)x, currentHash), 99private static int CombineHashCodes(ILabelSymbol x, int currentHash)
Microsoft.CodeAnalysis.Features (4)
FindUsages\AbstractFindUsagesService_FindReferences.cs (1)
209if (symbol is ILabelSymbol)
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.StructuralTypeCollectorVisitor.cs (1)
40public override void VisitLabel(ILabelSymbol symbol)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (2)
412else if (symbol is ILabelSymbol label) 696private void AddDescriptionForLabel(ILabelSymbol symbol)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
75/// Interior-method-level symbols (i.e. <see cref="ILabelSymbol"/>, <see cref="ILocalSymbol"/>, <see 320ILabelSymbol => true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
353public override void VisitLabel(ILabelSymbol labelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
462if (symbol is ILabelSymbol && newSymbol is ILabelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
122SymbolKind.Label => LabelsAreEquivalent((ILabelSymbol)x, (ILabelSymbol)y), 160private static bool LabelsAreEquivalent(ILabelSymbol x, ILabelSymbol y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
66SymbolKind.Label => CombineHashCodes((ILabelSymbol)x, currentHash), 99private static int CombineHashCodes(ILabelSymbol x, int currentHash)
Microsoft.CodeAnalysis.PublicApiAnalyzers (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
75/// Interior-method-level symbols (i.e. <see cref="ILabelSymbol"/>, <see cref="ILocalSymbol"/>, <see 320ILabelSymbol => true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
353public override void VisitLabel(ILabelSymbol labelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
462if (symbol is ILabelSymbol && newSymbol is ILabelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
122SymbolKind.Label => LabelsAreEquivalent((ILabelSymbol)x, (ILabelSymbol)y), 160private static bool LabelsAreEquivalent(ILabelSymbol x, ILabelSymbol y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
66SymbolKind.Label => CombineHashCodes((ILabelSymbol)x, currentHash), 99private static int CombineHashCodes(ILabelSymbol x, int currentHash)
Microsoft.CodeAnalysis.ResxSourceGenerator (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
75/// Interior-method-level symbols (i.e. <see cref="ILabelSymbol"/>, <see cref="ILocalSymbol"/>, <see 320ILabelSymbol => true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
353public override void VisitLabel(ILabelSymbol labelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
462if (symbol is ILabelSymbol && newSymbol is ILabelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
122SymbolKind.Label => LabelsAreEquivalent((ILabelSymbol)x, (ILabelSymbol)y), 160private static bool LabelsAreEquivalent(ILabelSymbol x, ILabelSymbol y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
66SymbolKind.Label => CombineHashCodes((ILabelSymbol)x, currentHash), 99private static int CombineHashCodes(ILabelSymbol x, int currentHash)
Microsoft.CodeAnalysis.Test.Utilities (5)
Compilation\OperationTreeVerifier.cs (3)
29private readonly Dictionary<ILabelSymbol, uint> _labelIdMap; 46_labelIdMap = new Dictionary<ILabelSymbol, uint>(); 267private uint GetLabelId(ILabelSymbol symbol)
Diagnostics\OperationTestAnalyzer.cs (2)
1449ILabelSymbol label = ((ILabeledOperation)operationContext.Operation).Label; 1463ILabelSymbol label = branch.Target;
Microsoft.CodeAnalysis.VisualBasic (18)
Compilation\SemanticModel.vb (1)
2515Public Overridable Overloads Function GetDeclaredSymbol(declarationSyntax As LabelStatementSyntax, Optional cancellationToken As CancellationToken = Nothing) As ILabelSymbol
Operations\VisualBasicOperationFactory.vb (14)
1076Dim exitLabel As ILabelSymbol = boundSelectStatement.ExitLabel 1146Dim continueLabel As ILabelSymbol = boundDoLoopStatement.ContinueLabel 1147Dim exitLabel As ILabelSymbol = boundDoLoopStatement.ExitLabel 1167Dim continueLabel As ILabelSymbol = boundForToStatement.ContinueLabel 1168Dim exitLabel As ILabelSymbol = boundForToStatement.ExitLabel 1248Dim continueLabel As ILabelSymbol = boundForEachStatement.ContinueLabel 1249Dim exitLabel As ILabelSymbol = boundForEachStatement.ExitLabel 1267Dim exitLabel As ILabelSymbol = boundTryStatement.ExitLabelOpt 1348Dim continueLabel As ILabelSymbol = boundWhileStatement.ContinueLabel 1349Dim exitLabel As ILabelSymbol = boundWhileStatement.ExitLabel 1381Dim label As ILabelSymbol = boundLabelStatement.Label 1389Dim target As ILabelSymbol = boundGotoStatement.Label 1397Dim target As ILabelSymbol = boundContinueStatement.Label 1405Dim target As ILabelSymbol = boundExitStatement.Label
SymbolDisplay\SymbolDisplayVisitor.vb (1)
185Public Overrides Sub VisitLabel(symbol As ILabelSymbol)
Symbols\LabelSymbol.vb (1)
111Friend ReadOnly Property ILabelSymbol_ContainingMethod As IMethodSymbol Implements ILabelSymbol.ContainingMethod
VisualBasicExtensions.vb (1)
941Public Function GetDeclaredSymbol(semanticModel As SemanticModel, declarationSyntax As LabelStatementSyntax, Optional cancellationToken As CancellationToken = Nothing) As ILabelSymbol
Microsoft.CodeAnalysis.Workspaces (12)
FindSymbols\FindReferences\Finders\LabelSymbolReferenceFinder.cs (1)
7internal sealed class LabelSymbolReferenceFinder : AbstractMemberScopedReferenceFinder<ILabelSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
75/// Interior-method-level symbols (i.e. <see cref="ILabelSymbol"/>, <see cref="ILocalSymbol"/>, <see 320ILabelSymbol => true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
353public override void VisitLabel(ILabelSymbol labelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
462if (symbol is ILabelSymbol && newSymbol is ILabelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
122SymbolKind.Label => LabelsAreEquivalent((ILabelSymbol)x, (ILabelSymbol)y), 160private static bool LabelsAreEquivalent(ILabelSymbol x, ILabelSymbol y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
66SymbolKind.Label => CombineHashCodes((ILabelSymbol)x, currentHash), 99private static int CombineHashCodes(ILabelSymbol x, int currentHash)
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SymbolKeyTests.cs (2)
550var symbols = GetDeclaredSymbols(compilation).OfType<IMethodSymbol>().SelectMany(ms => GetInteriorSymbols(ms, compilation).OfType<ILabelSymbol>()).ToList(); 1408Assert.True(symbols.Any(s => s is ILabelSymbol));
Roslyn.Diagnostics.Analyzers (12)
AbstractDoNotCopyValue.cs (1)
294public override void VisitLabel(ILabelSymbol symbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
75/// Interior-method-level symbols (i.e. <see cref="ILabelSymbol"/>, <see cref="ILocalSymbol"/>, <see 320ILabelSymbol => true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
353public override void VisitLabel(ILabelSymbol labelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
462if (symbol is ILabelSymbol && newSymbol is ILabelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
122SymbolKind.Label => LabelsAreEquivalent((ILabelSymbol)x, (ILabelSymbol)y), 160private static bool LabelsAreEquivalent(ILabelSymbol x, ILabelSymbol y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
66SymbolKind.Label => CombineHashCodes((ILabelSymbol)x, currentHash), 99private static int CombineHashCodes(ILabelSymbol x, int currentHash)
Test.Utilities (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
75/// Interior-method-level symbols (i.e. <see cref="ILabelSymbol"/>, <see cref="ILocalSymbol"/>, <see 320ILabelSymbol => true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
353public override void VisitLabel(ILabelSymbol labelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
462if (symbol is ILabelSymbol && newSymbol is ILabelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
122SymbolKind.Label => LabelsAreEquivalent((ILabelSymbol)x, (ILabelSymbol)y), 160private static bool LabelsAreEquivalent(ILabelSymbol x, ILabelSymbol y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
66SymbolKind.Label => CombineHashCodes((ILabelSymbol)x, currentHash), 99private static int CombineHashCodes(ILabelSymbol x, int currentHash)
Text.Analyzers (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
75/// Interior-method-level symbols (i.e. <see cref="ILabelSymbol"/>, <see cref="ILocalSymbol"/>, <see 320ILabelSymbol => true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
353public override void VisitLabel(ILabelSymbol labelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
462if (symbol is ILabelSymbol && newSymbol is ILabelSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
122SymbolKind.Label => LabelsAreEquivalent((ILabelSymbol)x, (ILabelSymbol)y), 160private static bool LabelsAreEquivalent(ILabelSymbol x, ILabelSymbol y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
66SymbolKind.Label => CombineHashCodes((ILabelSymbol)x, currentHash), 99private static int CombineHashCodes(ILabelSymbol x, int currentHash)