26 references to Designation
Microsoft.CodeAnalysis.CSharp (12)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1792
=> node.Update((TypeSyntax?)Visit(node.Type), (PositionalPatternClauseSyntax?)Visit(node.PositionalPatternClause), (PropertyPatternClauseSyntax?)Visit(node.PropertyPatternClause), (VariableDesignationSyntax?)Visit(node.
Designation
));
_generated\2\Syntax.xml.Syntax.Generated.cs (4)
5425
if (type != this.Type || positionalPatternClause != this.PositionalPatternClause || propertyPatternClause != this.PropertyPatternClause || designation != this.
Designation
)
5435
public RecursivePatternSyntax WithType(TypeSyntax? type) => Update(type, this.PositionalPatternClause, this.PropertyPatternClause, this.
Designation
);
5436
public RecursivePatternSyntax WithPositionalPatternClause(PositionalPatternClauseSyntax? positionalPatternClause) => Update(this.Type, positionalPatternClause, this.PropertyPatternClause, this.
Designation
);
5437
public RecursivePatternSyntax WithPropertyPatternClause(PropertyPatternClauseSyntax? propertyPatternClause) => Update(this.Type, this.PositionalPatternClause, propertyPatternClause, this.
Designation
);
Binder\Binder_Patterns.cs (3)
1410
node.
Designation
, declTypeWithAnnotations, permitDesignations, typeSyntax, diagnostics,
1413
node.
Designation
is null &&
1595
if (node.
Designation
?.Kind() == SyntaxKind.SingleVariableDesignation)
Binder\ExpressionVariableFinder.cs (2)
265
Debug.Assert(node.
Designation
is null or SingleVariableDesignationSyntax or DiscardDesignationSyntax);
266
TFieldOrLocalSymbol variable = MakePatternVariable(node.Type, node.
Designation
as SingleVariableDesignationSyntax, _nodeToBind);
Syntax\SyntaxNormalizer.cs (2)
530
if (rps.
Designation
is null)
594
if (rps.
Designation
is null)
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnusedParametersAndValues\CSharpRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (2)
92
Debug.Assert(recursivePattern.
Designation
is not null, "If we got to this point variable designation cannot be null");
93
return recursivePattern.
Designation
!.GetLocation();
src\roslyn\src\Analyzers\CSharp\Analyzers\SimplifyPropertyPattern\SimplifyPropertyPatternHelpers.cs (1)
31
Designation
: null,
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePatternMatching\UsePatternMatchingHelpers.cs (1)
91
Pattern: DeclarationPatternSyntax or VarPatternSyntax or RecursivePatternSyntax {
Designation
: not null }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1390
designation = recursivePattern.
Designation
;
Microsoft.CodeAnalysis.CSharp.Features (7)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (3)
218
(VarPatternSyntax var, RecursivePatternSyntax {
Designation
: null } recursive)
222
(DeclarationPatternSyntax decl, RecursivePatternSyntax { Type: null,
Designation
: null } recursive)
230
(RecursivePatternSyntax recursive, RecursivePatternSyntax { Type: null,
Designation
: null } other)
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnusedParametersAndValues\CSharpRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (2)
92
Debug.Assert(recursivePattern.
Designation
is not null, "If we got to this point variable designation cannot be null");
93
return recursivePattern.
Designation
!.GetLocation();
src\roslyn\src\Analyzers\CSharp\Analyzers\SimplifyPropertyPattern\SimplifyPropertyPatternHelpers.cs (1)
31
Designation
: null,
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePatternMatching\UsePatternMatchingHelpers.cs (1)
91
Pattern: DeclarationPatternSyntax or VarPatternSyntax or RecursivePatternSyntax {
Designation
: not null }
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1390
designation = recursivePattern.
Designation
;
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1390
designation = recursivePattern.
Designation
;