34 references to Identifier
Microsoft.CodeAnalysis.CSharp (17)
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);
Compilation\MemberSemanticModel.cs (1)
768label.IdentifierNodeOrToken.AsToken() == declarationSyntax.Identifier)
Lowering\Instrumentation\DebugInfoInjector.cs (1)
380var span = TextSpan.FromBounds(labeledSyntax.Identifier.SpanStart, labeledSyntax.ColonToken.Span.End);
Syntax.xml.Main.Generated.cs (1)
1864=> node.Update(VisitList(node.AttributeLists), VisitToken(node.Identifier), VisitToken(node.ColonToken), (StatementSyntax?)Visit(node.Statement) ?? throw new ArgumentNullException("statement"));
Syntax.xml.Syntax.Generated.cs (4)
6999if (attributeLists != this.AttributeLists || identifier != this.Identifier || colonToken != this.ColonToken || statement != this.Statement) 7010public new LabeledStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Identifier, this.ColonToken, this.Statement); 7012public LabeledStatementSyntax WithColonToken(SyntaxToken colonToken) => Update(this.AttributeLists, this.Identifier, colonToken, this.Statement); 7013public LabeledStatementSyntax WithStatement(StatementSyntax statement) => Update(this.AttributeLists, this.Identifier, this.ColonToken, statement);
Syntax\LookupPosition.cs (1)
345return ((LabeledStatementSyntax)statement).Identifier;
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
349labeledStatement.Identifier == token;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (2)
141AddUnindentBlockOperation(list, labeledStatement.Identifier, labeledStatement.ColonToken); 145AddAbsoluteZeroIndentBlockOperation(list, labeledStatement.Identifier, labeledStatement.ColonToken);
Microsoft.CodeAnalysis.CSharp.Features (1)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1826return ((LabeledStatementSyntax)node).Identifier.Span;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Generated\Syntax.Test.xml.Generated.cs (2)
12519Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind()); 12522var newNode = node.WithAttributeLists(node.AttributeLists).WithIdentifier(node.Identifier).WithColonToken(node.ColonToken).WithStatement(node.Statement);
Parsing\StatementParsingTests.cs (2)
977Assert.NotEqual(default, ls.Identifier); 978Assert.Equal("label", ls.Identifier.ToString());
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
Classification\ClassificationHelpers.cs (2)
279else if (token.Parent is LabeledStatementSyntax labledStatementSyntax && labledStatementSyntax.Identifier == token) 450statement.Identifier == token)
Rename\LabelConflictVisitor.cs (1)
38tokens.Add(declarationStatement.Identifier);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
349labeledStatement.Identifier == token;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (2)
141AddUnindentBlockOperation(list, labeledStatement.Identifier, labeledStatement.ColonToken); 145AddAbsoluteZeroIndentBlockOperation(list, labeledStatement.Identifier, labeledStatement.ColonToken);
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
349labeledStatement.Identifier == token;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (2)
141AddUnindentBlockOperation(list, labeledStatement.Identifier, labeledStatement.ColonToken); 145AddAbsoluteZeroIndentBlockOperation(list, labeledStatement.Identifier, labeledStatement.ColonToken);