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