1 instantiation of CatchDeclarationSyntax
Microsoft.CodeAnalysis.CSharp (1)
_generated\1\Syntax.xml.Internal.Generated.cs (1)
14786internal override SyntaxNode CreateRed(SyntaxNode? parent, int position) => new CSharp.Syntax.CatchDeclarationSyntax(this, parent, position);
62 references to CatchDeclarationSyntax
Microsoft.CodeAnalysis.CSharp (28)
_generated\0\Syntax.xml.Main.Generated.cs (10)
464public virtual TResult? VisitCatchDeclaration(CatchDeclarationSyntax node) => this.DefaultVisit(node); 1216public virtual void VisitCatchDeclaration(CatchDeclarationSyntax node) => this.DefaultVisit(node); 1965=> node.Update(VisitToken(node.CatchKeyword), (CatchDeclarationSyntax?)Visit(node.Declaration), (CatchFilterClauseSyntax?)Visit(node.Filter), (BlockSyntax?)Visit(node.Block) ?? throw new ArgumentNullException("block")); 1967public override SyntaxNode? VisitCatchDeclaration(CatchDeclarationSyntax node) 4722public static CatchClauseSyntax CatchClause(SyntaxToken catchKeyword, CatchDeclarationSyntax? declaration, CatchFilterClauseSyntax? filter, BlockSyntax block) 4730public static CatchClauseSyntax CatchClause(CatchDeclarationSyntax? declaration, CatchFilterClauseSyntax? filter, BlockSyntax block) 4738public static CatchDeclarationSyntax CatchDeclaration(SyntaxToken openParenToken, TypeSyntax type, SyntaxToken identifier, SyntaxToken closeParenToken) 4749return (CatchDeclarationSyntax)Syntax.InternalSyntax.SyntaxFactory.CatchDeclaration((Syntax.InternalSyntax.SyntaxToken)openParenToken.Node!, (Syntax.InternalSyntax.TypeSyntax)type.Green, (Syntax.InternalSyntax.SyntaxToken?)identifier.Node, (Syntax.InternalSyntax.SyntaxToken)closeParenToken.Node!).CreateRed(); 4753public static CatchDeclarationSyntax CatchDeclaration(TypeSyntax type, SyntaxToken identifier) 4757public static CatchDeclarationSyntax CatchDeclaration(TypeSyntax type)
_generated\2\Syntax.xml.Syntax.Generated.cs (10)
9080private CatchDeclarationSyntax? declaration; 9091public CatchDeclarationSyntax? Declaration => GetRed(ref this.declaration, 1); 9118public CatchClauseSyntax Update(SyntaxToken catchKeyword, CatchDeclarationSyntax? declaration, CatchFilterClauseSyntax? filter, BlockSyntax block) 9131public CatchClauseSyntax WithDeclaration(CatchDeclarationSyntax? declaration) => Update(this.CatchKeyword, declaration, this.Filter, this.Block); 9176public CatchDeclarationSyntax Update(SyntaxToken openParenToken, TypeSyntax type, SyntaxToken identifier, SyntaxToken closeParenToken) 9180var newNode = SyntaxFactory.CatchDeclaration(openParenToken, type, identifier, closeParenToken); 9188public CatchDeclarationSyntax WithOpenParenToken(SyntaxToken openParenToken) => Update(openParenToken, this.Type, this.Identifier, this.CloseParenToken); 9189public CatchDeclarationSyntax WithType(TypeSyntax type) => Update(this.OpenParenToken, type, this.Identifier, this.CloseParenToken); 9190public CatchDeclarationSyntax WithIdentifier(SyntaxToken identifier) => Update(this.OpenParenToken, this.Type, identifier, this.CloseParenToken); 9191public CatchDeclarationSyntax WithCloseParenToken(SyntaxToken closeParenToken) => Update(this.OpenParenToken, this.Type, this.Identifier, closeParenToken);
Binder\Binder_Statements.cs (1)
3307var declaration = node.Declaration;
Binder\CatchClauseBinder.cs (1)
31var declarationOpt = _syntax.Declaration;
CodeGen\EmitStatement.cs (1)
1090var declaration = syntax.Declaration;
Compilation\CSharpSemanticModel.cs (2)
3311public ILocalSymbol GetDeclaredSymbol(CatchDeclarationSyntax catchDeclaration) 5195return this.GetDeclaredSymbol((CatchDeclarationSyntax)node);
CSharpExtensions.cs (1)
1616public static ILocalSymbol? GetDeclaredSymbol(this SemanticModel? semanticModel, CatchDeclarationSyntax catchDeclaration, CancellationToken cancellationToken = default(CancellationToken))
Symbols\Source\SourceLocalSymbol.cs (1)
545Debug.Assert(node is CatchDeclarationSyntax);
Syntax\SyntaxFacts.cs (1)
135return ((CatchDeclarationSyntax)parent).Type == node;
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.DeclarationFinder.cs (1)
51public override void VisitCatchDeclaration(CatchDeclarationSyntax node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
719CatchDeclarationSyntax n => (n.OpenParenToken, n.CloseParenToken),
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (9)
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (2)
77var catchDeclaration = (CatchDeclarationSyntax)node;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (2)
896var catchDeclarationSyntax = (CatchDeclarationSyntax)syntaxNode;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (2)
61case CatchDeclarationSyntax catchDeclaration: 120private static bool IsDiscardDeclaration(CatchDeclarationSyntax catchDeclaration)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
150CatchDeclarationSyntax catchDeclaration => InferTypeInCatchDeclaration(catchDeclaration), 222CatchDeclarationSyntax catchDeclaration => InferTypeInCatchDeclaration(catchDeclaration, token), 1095private IEnumerable<TypeInferenceInfo> InferTypeInCatchDeclaration(CatchDeclarationSyntax catchDeclaration, SyntaxToken? previousToken = null)
Microsoft.CodeAnalysis.CSharp.Features (3)
RemoveUnusedVariable\CSharpRemoveUnusedVariableCodeFixProvider.cs (1)
32=> token.Parent is CatchDeclarationSyntax catchDeclaration && catchDeclaration.Identifier == token;
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (2)
77var catchDeclaration = (CatchDeclarationSyntax)node;
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\Runtime\CSharpAvoidRedundantRegexIsMatchBeforeMatch.Fixer.cs (1)
539if (descendant is CatchDeclarationSyntax catchDecl &&
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
Classification\ClassificationHelpers.cs (1)
238else if (token.Parent is CatchDeclarationSyntax catchDeclaration && catchDeclaration.Identifier == token)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.DeclarationFinder.cs (1)
51public override void VisitCatchDeclaration(CatchDeclarationSyntax node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
719CatchDeclarationSyntax n => (n.OpenParenToken, n.CloseParenToken),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (2)
896var catchDeclarationSyntax = (CatchDeclarationSyntax)syntaxNode;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (2)
61case CatchDeclarationSyntax catchDeclaration: 120private static bool IsDiscardDeclaration(CatchDeclarationSyntax catchDeclaration)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
150CatchDeclarationSyntax catchDeclaration => InferTypeInCatchDeclaration(catchDeclaration), 222CatchDeclarationSyntax catchDeclaration => InferTypeInCatchDeclaration(catchDeclaration, token), 1095private IEnumerable<TypeInferenceInfo> InferTypeInCatchDeclaration(CatchDeclarationSyntax catchDeclaration, SyntaxToken? previousToken = null)
Roslyn.Diagnostics.CSharp.Analyzers (9)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.DeclarationFinder.cs (1)
51public override void VisitCatchDeclaration(CatchDeclarationSyntax node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
719CatchDeclarationSyntax n => (n.OpenParenToken, n.CloseParenToken),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (2)
896var catchDeclarationSyntax = (CatchDeclarationSyntax)syntaxNode;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (2)
61case CatchDeclarationSyntax catchDeclaration: 120private static bool IsDiscardDeclaration(CatchDeclarationSyntax catchDeclaration)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
150CatchDeclarationSyntax catchDeclaration => InferTypeInCatchDeclaration(catchDeclaration), 222CatchDeclarationSyntax catchDeclaration => InferTypeInCatchDeclaration(catchDeclaration, token), 1095private IEnumerable<TypeInferenceInfo> InferTypeInCatchDeclaration(CatchDeclarationSyntax catchDeclaration, SyntaxToken? previousToken = null)