25 references to Filter
Microsoft.CodeAnalysis.CSharp (13)
Binder\Binder_Statements.cs (2)
3269hasCatchAll |= catchSyntax.Declaration == null && catchSyntax.Filter == null; 3311var filter = node.Filter;
Binder\CatchClauseBinder.cs (2)
37if (_syntax.Filter != null) 39ExpressionVariableFinder.FindExpressionVariables(this, locals, _syntax.Filter.FilterExpression);
Binder\LocalBinderFactory.cs (3)
883if (node.Filter != null) 886AddToMap(node.Filter, filterBinder); 887Visit(node.Filter, filterBinder);
Lowering\Instrumentation\DebugInfoInjector.cs (1)
480var filterClause = ((CatchClauseSyntax)original.Syntax).Filter;
Syntax.xml.Main.Generated.cs (1)
1945=> node.Update(VisitToken(node.CatchKeyword), (CatchDeclarationSyntax?)Visit(node.Declaration), (CatchFilterClauseSyntax?)Visit(node.Filter), (BlockSyntax?)Visit(node.Block) ?? throw new ArgumentNullException("block"));
Syntax.xml.Syntax.Generated.cs (4)
9073if (catchKeyword != this.CatchKeyword || declaration != this.Declaration || filter != this.Filter || block != this.Block) 9083public CatchClauseSyntax WithCatchKeyword(SyntaxToken catchKeyword) => Update(catchKeyword, this.Declaration, this.Filter, this.Block); 9084public CatchClauseSyntax WithDeclaration(CatchDeclarationSyntax? declaration) => Update(this.CatchKeyword, declaration, this.Filter, this.Block); 9086public CatchClauseSyntax WithBlock(BlockSyntax block) => Update(this.CatchKeyword, this.Declaration, this.Filter, block);
Microsoft.CodeAnalysis.CSharp.Features (9)
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
189if (catchClause.Filter != null)
EditAndContinue\BreakpointSpans.cs (2)
918if (catchClause.Filter != null) 920return CreateSpan(catchClause.Filter);
EditAndContinue\SyntaxComparer.cs (4)
1085if (leftCatch.Declaration == null && leftCatch.Filter == null && 1086rightCatch.Declaration == null && rightCatch.Filter == null) 1154var distance = CombineOptional(blockDistance, left.Declaration, right.Declaration, left.Filter, right.Filter);
Highlighting\KeywordHighlighters\TryStatementHighlighter.cs (2)
36if (catchDeclaration.Filter != null) 38highlights.Add(catchDeclaration.Filter.WhenKeyword.Span);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\TryCatchTests.cs (1)
50var filterExprInfo = model.GetSymbolInfo(catchClause.Filter.FilterExpression);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.cs (2)
12903Assert.Null(node.Filter); 12905var newNode = node.WithCatchKeyword(node.CatchKeyword).WithDeclaration(node.Declaration).WithFilter(node.Filter).WithBlock(node.Block);