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