25 references to Declaration
Microsoft.CodeAnalysis.CSharp (10)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1957
=> node.Update(VisitToken(node.CatchKeyword), (CatchDeclarationSyntax?)Visit(node.
Declaration
), (CatchFilterClauseSyntax?)Visit(node.Filter), (BlockSyntax?)Visit(node.Block) ?? throw new ArgumentNullException("block"));
_generated\2\Syntax.xml.Syntax.Generated.cs (4)
9119
if (catchKeyword != this.CatchKeyword || declaration != this.
Declaration
|| filter != this.Filter || block != this.Block)
9129
public CatchClauseSyntax WithCatchKeyword(SyntaxToken catchKeyword) => Update(catchKeyword, this.
Declaration
, this.Filter, this.Block);
9131
public CatchClauseSyntax WithFilter(CatchFilterClauseSyntax? filter) => Update(this.CatchKeyword, this.
Declaration
, filter, this.Block);
9132
public CatchClauseSyntax WithBlock(BlockSyntax block) => Update(this.CatchKeyword, this.
Declaration
, this.Filter, block);
Binder\Binder_Statements.cs (2)
3297
hasCatchAll |= catchSyntax.
Declaration
== null && catchSyntax.Filter == null;
3307
var declaration = node.
Declaration
;
Binder\CatchClauseBinder.cs (1)
31
var declarationOpt = _syntax.
Declaration
;
CodeGen\EmitStatement.cs (2)
1090
var declaration = syntax.
Declaration
;
1098
spSpan = TextSpan.FromBounds(syntax.SpanStart, syntax.
Declaration
.Span.End);
Microsoft.CodeAnalysis.CSharp.Features (13)
Debugging\CSharpProximityExpressionsService.Worker.cs (3)
82
catchClause.
Declaration
!= null && catchClause.
Declaration
.Identifier.Kind() != SyntaxKind.None)
84
_expressions.Add(catchClause.
Declaration
.Identifier.ValueText);
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (4)
208
if (catchClause.
Declaration
== null)
212
if (SyntaxFactory.AreEquivalent(exceptionType, catchClause.
Declaration
.Type.ConvertToSingleLine()))
216
catchClause.
Declaration
.Type is IdentifierNameSyntax { Identifier.ValueText: nameof(Exception) })
221
if (catchClause.
Declaration
.Type is QualifiedNameSyntax
EditAndContinue\BreakpointSpans.cs (2)
943
else if (catchClause.
Declaration
!= null)
945
return CreateSpan(catchClause.CatchKeyword, catchClause.
Declaration
.CloseParenToken);
EditAndContinue\SyntaxComparer.cs (4)
1085
if (leftCatch is {
Declaration
: null, Filter: null } &&
1086
rightCatch is {
Declaration
: null, Filter: null })
1154
var distance = CombineOptional(blockDistance, left.
Declaration
, right.
Declaration
, left.Filter, right.Filter);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Rename\LocalConflictVisitor.cs (2)
111
if (node.
Declaration
!= null)
113
tokens.Add(node.
Declaration
.Identifier);