38 references to Identifier
Microsoft.CodeAnalysis.CSharp (21)
_generated\0\Syntax.xml.Main.Generated.cs (1)
2080
=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), VisitToken(node.
Identifier
), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), (ConstructorInitializerSyntax?)Visit(node.Initializer), (BlockSyntax?)Visit(node.Body), (ArrowExpressionClauseSyntax?)Visit(node.ExpressionBody), VisitToken(node.SemicolonToken));
_generated\2\Syntax.xml.Syntax.Generated.cs (8)
12838
if (attributeLists != this.AttributeLists || modifiers != this.Modifiers || identifier != this.
Identifier
|| parameterList != this.ParameterList || initializer != this.Initializer || body != this.Body || expressionBody != this.ExpressionBody || semicolonToken != this.SemicolonToken)
12849
public new ConstructorDeclarationSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Modifiers, this.
Identifier
, this.ParameterList, this.Initializer, this.Body, this.ExpressionBody, this.SemicolonToken);
12851
public new ConstructorDeclarationSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.AttributeLists, modifiers, this.
Identifier
, this.ParameterList, this.Initializer, this.Body, this.ExpressionBody, this.SemicolonToken);
12854
public new ConstructorDeclarationSyntax WithParameterList(ParameterListSyntax parameterList) => Update(this.AttributeLists, this.Modifiers, this.
Identifier
, parameterList, this.Initializer, this.Body, this.ExpressionBody, this.SemicolonToken);
12855
public ConstructorDeclarationSyntax WithInitializer(ConstructorInitializerSyntax? initializer) => Update(this.AttributeLists, this.Modifiers, this.
Identifier
, this.ParameterList, initializer, this.Body, this.ExpressionBody, this.SemicolonToken);
12857
public new ConstructorDeclarationSyntax WithBody(BlockSyntax? body) => Update(this.AttributeLists, this.Modifiers, this.
Identifier
, this.ParameterList, this.Initializer, body, this.ExpressionBody, this.SemicolonToken);
12859
public new ConstructorDeclarationSyntax WithExpressionBody(ArrowExpressionClauseSyntax? expressionBody) => Update(this.AttributeLists, this.Modifiers, this.
Identifier
, this.ParameterList, this.Initializer, this.Body, expressionBody, this.SemicolonToken);
12861
public new ConstructorDeclarationSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.Modifiers, this.
Identifier
, this.ParameterList, this.Initializer, this.Body, this.ExpressionBody, semicolonToken);
Binder\Binder_Statements.cs (2)
3799
Error(diagnostics, ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, initializer?.ThisOrBaseKeyword ?? constructor.
Identifier
);
3804
Error(diagnostics, ErrorCode.ERR_UnionConstructorCallsDefaultConstructor, initializer?.ThisOrBaseKeyword ?? constructor.
Identifier
);
Compiler\MethodCompiler.cs (1)
1917
constructorSyntax.
Identifier
.ValueText);
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
613
return SkipAttributes(syntax, constructorSyntax.AttributeLists, constructorSyntax.Modifiers, constructorSyntax.
Identifier
, type: null);
Lowering\Instrumentation\DebugInfoInjector.cs (1)
80
span = CreateSpan(ctorDecl.Modifiers, ctorDecl.
Identifier
, ctorDecl.ParameterList.CloseParenToken);
Symbols\Source\SourceConstructorSymbol.cs (4)
27
return new SourceConstructorSymbol(containingType, syntax.
Identifier
.GetLocation(), syntax, methodKind, isNullableAnalysisEnabled, diagnostics);
48
if (syntax.
Identifier
.ValueText != containingType.Name)
50
if (syntax.
Identifier
.Text == "extension")
169
containingType.Name == syntax.
Identifier
.ValueText)
Symbols\Source\SourceConstructorSymbolBase.cs (1)
66
ContainingType.Name == ((ConstructorDeclarationSyntax)this.SyntaxNode).
Identifier
.ValueText)
Symbols\Source\SourceMemberContainerSymbol.cs (2)
2249
((ConstructorDeclarationSyntax)constructor.SyntaxRef.GetSyntax()).
Identifier
.ValueText != method1.ContainingType.Name)
5713
constructorSyntax.
Identifier
,
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
189
_primaryConstructorDeclaration.
Identifier
.GetLocation(),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
57
return ((ConstructorDeclarationSyntax)member).
Identifier
;
Microsoft.CodeAnalysis.CSharp.Features (9)
CodeLens\CSharpCodeLensMemberFinder.cs (1)
79
_memberBuilder.Add(new CodeLensMember(node, node.
Identifier
.Span));
EditAndContinue\BreakpointSpans.cs (2)
473
=> CreateSpan(constructor.Modifiers, constructor.
Identifier
, constructor.ParameterList.CloseParenToken);
476
=> constructor.Modifiers.Concat([constructor.
Identifier
]).Concat(getDescendantTokens(constructor.ParameterList));
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1690
return GetDiagnosticSpan(constructorDeclaration.Modifiers, constructorDeclaration.
Identifier
, constructorDeclaration.ParameterList);
EditAndContinue\SyntaxComparer.cs (1)
1468
return ((ConstructorDeclarationSyntax)node).
Identifier
;
Organizing\Organizers\ConstructorDeclarationOrganizer.cs (1)
31
syntax.
Identifier
,
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (1)
173
AddConstructorOrDestructorDeclaration(constructorDeclaration, constructorDeclaration.
Identifier
);
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
189
_primaryConstructorDeclaration.
Identifier
.GetLocation(),
Structure\CSharpStructureHelpers.cs (1)
269
ConstructorDeclarationSyntax constructorDeclaration => constructorDeclaration.Modifiers.FirstOrNull() ?? constructorDeclaration.
Identifier
,
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Classification\ClassificationHelpers.cs (1)
218
else if (token.Parent is ConstructorDeclarationSyntax constructorDeclaration && constructorDeclaration.
Identifier
== token)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (3)
275
ctorDecl.
Identifier
.ValueText,
283
ctorDecl.
Identifier
.Span,
487
? ".static " + constructor.
Identifier
+ "()"
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
57
return ((ConstructorDeclarationSyntax)member).
Identifier
;
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
57
return ((ConstructorDeclarationSyntax)member).
Identifier
;