30 references to Identifier
Microsoft.CodeAnalysis.CSharp (17)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1876
=> 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)
7045
if (attributeLists != this.AttributeLists || identifier != this.
Identifier
|| colonToken != this.ColonToken || statement != this.Statement)
7056
public new LabeledStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.
Identifier
, this.ColonToken, this.Statement);
7058
public LabeledStatementSyntax WithColonToken(SyntaxToken colonToken) => Update(this.AttributeLists, this.
Identifier
, colonToken, this.Statement);
7059
public LabeledStatementSyntax WithStatement(StatementSyntax statement) => Update(this.AttributeLists, this.
Identifier
, this.ColonToken, statement);
Binder\Binder_Statements.cs (8)
476
var binder = this.LookupSymbolsWithFallback(result, node.
Identifier
.ValueText, arity: 0, useSiteInfo: ref useSiteInfo, options: LookupOptions.LabelsOnly);
482
new SourceLabelSymbol((MethodSymbol)ContainingMemberOrLambda, node.
Identifier
);
484
if (!symbol.IdentifierNodeOrToken.IsToken || symbol.IdentifierNodeOrToken.AsToken() != node.
Identifier
)
486
Error(diagnostics, ErrorCode.ERR_DuplicateLabel, node.
Identifier
, node.
Identifier
.ValueText);
494
binder.Next.LookupSymbolsWithFallback(result, node.
Identifier
.ValueText, arity: 0, useSiteInfo: ref useSiteInfo, options: LookupOptions.LabelsOnly);
498
Error(diagnostics, ErrorCode.ERR_LabelShadow, node.
Identifier
, node.
Identifier
.ValueText);
Binder\LocalScopeBinder.cs (1)
372
var labelSymbol = new SourceLabelSymbol(containingMethod, labeledStatement.
Identifier
);
Compilation\MemberSemanticModel.cs (1)
768
label.IdentifierNodeOrToken.AsToken() == declarationSyntax.
Identifier
)
Lowering\Instrumentation\DebugInfoInjector.cs (1)
380
var span = TextSpan.FromBounds(labeledSyntax.
Identifier
.SpanStart, labeledSyntax.ColonToken.Span.End);
Syntax\LookupPosition.cs (1)
345
return ((LabeledStatementSyntax)statement).
Identifier
;
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
352
labeledStatement.
Identifier
== token;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (2)
136
AddUnindentBlockOperation(list, labeledStatement.
Identifier
, labeledStatement.ColonToken);
140
AddAbsoluteZeroIndentBlockOperation(list, labeledStatement.
Identifier
, labeledStatement.ColonToken);
Microsoft.CodeAnalysis.CSharp.Features (1)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1826
return ((LabeledStatementSyntax)node).
Identifier
.Span;
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
Classification\ClassificationHelpers.cs (2)
281
else if (token.Parent is LabeledStatementSyntax labledStatementSyntax && labledStatementSyntax.
Identifier
== token)
456
statement.
Identifier
== token)
Rename\LabelConflictVisitor.cs (1)
38
tokens.Add(declarationStatement.
Identifier
);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
352
labeledStatement.
Identifier
== token;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (2)
136
AddUnindentBlockOperation(list, labeledStatement.
Identifier
, labeledStatement.ColonToken);
140
AddAbsoluteZeroIndentBlockOperation(list, labeledStatement.
Identifier
, labeledStatement.ColonToken);
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
352
labeledStatement.
Identifier
== token;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (2)
136
AddUnindentBlockOperation(list, labeledStatement.
Identifier
, labeledStatement.ColonToken);
140
AddAbsoluteZeroIndentBlockOperation(list, labeledStatement.
Identifier
, labeledStatement.ColonToken);