40 references to Identifier
Microsoft.CodeAnalysis.CSharp (19)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1896=> node.Update(VisitList(node.AttributeLists), VisitToken(node.Identifier), VisitToken(node.ColonToken), (StatementSyntax?)Visit(node.Statement) ?? throw new ArgumentNullException("statement"));
_generated\2\Syntax.xml.Syntax.Generated.cs (4)
7101if (attributeLists != this.AttributeLists || identifier != this.Identifier || colonToken != this.ColonToken || statement != this.Statement) 7112public new LabeledStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Identifier, this.ColonToken, this.Statement); 7114public LabeledStatementSyntax WithColonToken(SyntaxToken colonToken) => Update(this.AttributeLists, this.Identifier, colonToken, this.Statement); 7115public LabeledStatementSyntax WithStatement(StatementSyntax statement) => Update(this.AttributeLists, this.Identifier, this.ColonToken, statement);
Binder\Binder_Statements.cs (8)
476var binder = this.LookupSymbolsWithFallback(result, node.Identifier.ValueText, arity: 0, useSiteInfo: ref useSiteInfo, options: LookupOptions.LabelsOnly); 482new SourceLabelSymbol((MethodSymbol)ContainingMemberOrLambda, node.Identifier); 484if (!symbol.IdentifierNodeOrToken.IsToken || symbol.IdentifierNodeOrToken.AsToken() != node.Identifier) 486Error(diagnostics, ErrorCode.ERR_DuplicateLabel, node.Identifier, node.Identifier.ValueText); 494binder.Next.LookupSymbolsWithFallback(result, node.Identifier.ValueText, arity: 0, useSiteInfo: ref useSiteInfo, options: LookupOptions.LabelsOnly); 498Error(diagnostics, ErrorCode.ERR_LabelShadow, node.Identifier, node.Identifier.ValueText);
Binder\LocalScopeBinder.cs (1)
372var labelSymbol = new SourceLabelSymbol(containingMethod, labeledStatement.Identifier);
Binder\LoopBinderContext.cs (1)
22_labelName = loopSyntax.Parent is LabeledStatementSyntax labeled ? labeled.Identifier.ValueText : null;
Binder\SwitchBinder.cs (1)
35_labelName = switchSyntax.Parent is LabeledStatementSyntax labeled ? labeled.Identifier.ValueText : null;
Compilation\MemberSemanticModel.cs (1)
775label.IdentifierNodeOrToken.AsToken() == declarationSyntax.Identifier)
Lowering\Instrumentation\DebugInfoInjector.cs (1)
380var span = TextSpan.FromBounds(labeledSyntax.Identifier.SpanStart, labeledSyntax.ColonToken.Span.End);
Syntax\LookupPosition.cs (1)
345return ((LabeledStatementSyntax)statement).Identifier;
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
352labeledStatement.Identifier == token;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (2)
136AddUnindentBlockOperation(list, labeledStatement.Identifier, labeledStatement.ColonToken); 140AddAbsoluteZeroIndentBlockOperation(list, labeledStatement.Identifier, labeledStatement.ColonToken);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseLabeledJumpStatements\CSharpUseLabeledJumpStatementsCodeFixProvider.cs (3)
84var labelName = existingLabel ?? (keepOriginalLabel ? SynthesizeLabelName(semanticModel, loop, cancellationToken) : labelDeclaration.Identifier.Text); 181=> (loop.Parent as LabeledStatementSyntax)?.Identifier.Text; 205inScope.Add(labeled.Identifier.ValueText);
Microsoft.CodeAnalysis.CSharp.Features (6)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1826return ((LabeledStatementSyntax)node).Identifier.Span;
Highlighting\KeywordHighlighters\LoopHighlighter.cs (1)
41var labelName = (node.Parent as LabeledStatementSyntax)?.Identifier.ValueText;
Highlighting\KeywordHighlighters\SwitchStatementHighlighter.cs (1)
39var labelName = (switchStatement.Parent as LabeledStatementSyntax)?.Identifier.ValueText;
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseLabeledJumpStatements\CSharpUseLabeledJumpStatementsCodeFixProvider.cs (3)
84var labelName = existingLabel ?? (keepOriginalLabel ? SynthesizeLabelName(semanticModel, loop, cancellationToken) : labelDeclaration.Identifier.Text); 181=> (loop.Parent as LabeledStatementSyntax)?.Identifier.Text; 205inScope.Add(labeled.Identifier.ValueText);
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
Classification\ClassificationHelpers.cs (2)
281else if (token.Parent is LabeledStatementSyntax labledStatementSyntax && labledStatementSyntax.Identifier == token) 456statement.Identifier == token)
Rename\LabelConflictVisitor.cs (1)
38tokens.Add(declarationStatement.Identifier);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
352labeledStatement.Identifier == token;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (2)
136AddUnindentBlockOperation(list, labeledStatement.Identifier, labeledStatement.ColonToken); 140AddAbsoluteZeroIndentBlockOperation(list, labeledStatement.Identifier, labeledStatement.ColonToken);
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
352labeledStatement.Identifier == token;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (2)
136AddUnindentBlockOperation(list, labeledStatement.Identifier, labeledStatement.ColonToken); 140AddAbsoluteZeroIndentBlockOperation(list, labeledStatement.Identifier, labeledStatement.ColonToken);