22 references to Type
Microsoft.CodeAnalysis.CSharp (13)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1960=> node.Update(VisitToken(node.OpenParenToken), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), VisitToken(node.Identifier), VisitToken(node.CloseParenToken));
_generated\2\Syntax.xml.Syntax.Generated.cs (4)
9177if (openParenToken != this.OpenParenToken || type != this.Type || identifier != this.Identifier || closeParenToken != this.CloseParenToken) 9187public CatchDeclarationSyntax WithOpenParenToken(SyntaxToken openParenToken) => Update(openParenToken, this.Type, this.Identifier, this.CloseParenToken); 9189public CatchDeclarationSyntax WithIdentifier(SyntaxToken identifier) => Update(this.OpenParenToken, this.Type, identifier, this.CloseParenToken); 9190public CatchDeclarationSyntax WithCloseParenToken(SyntaxToken closeParenToken) => Update(this.OpenParenToken, this.Type, this.Identifier, closeParenToken);
Binder\Binder_Statements.cs (6)
3314type = this.BindType(declaration.Type, diagnostics).Type; 3328Error(diagnostics, ErrorCode.ERR_BadExceptionType, declaration.Type); 3330diagnostics.Add(declaration.Type, useSiteInfo); 3370Error(diagnostics, ErrorCode.ERR_UnreachableCatch, declaration.Type, previousType); 3371diagnostics.Add(declaration.Type, useSiteInfo); 3376diagnostics.Add(declaration.Type, useSiteInfo);
Binder\CatchClauseBinder.cs (1)
34locals.Add(SourceLocalSymbol.MakeLocal(this.ContainingMemberOrLambda, this, allowRefKind: false, allowScoped: false, declarationOpt.Type, declarationOpt.Identifier, LocalDeclarationKind.CatchVariable, initializer: null));
Syntax\SyntaxFacts.cs (1)
135return ((CatchDeclarationSyntax)parent).Type == node;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (2)
898.WithLeadingTrivia(catchDeclarationSyntax.Type.GetLeadingTrivia()) 899.WithTrailingTrivia(catchDeclarationSyntax.Type.GetTrailingTrivia());
Microsoft.CodeAnalysis.CSharp.Features (3)
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (3)
212if (SyntaxFactory.AreEquivalent(exceptionType, catchClause.Declaration.Type.ConvertToSingleLine())) 216catchClause.Declaration.Type is IdentifierNameSyntax { Identifier.ValueText: nameof(Exception) }) 221if (catchClause.Declaration.Type is QualifiedNameSyntax
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (2)
898.WithLeadingTrivia(catchDeclarationSyntax.Type.GetLeadingTrivia()) 899.WithTrailingTrivia(catchDeclarationSyntax.Type.GetTrailingTrivia());
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (2)
898.WithLeadingTrivia(catchDeclarationSyntax.Type.GetLeadingTrivia()) 899.WithTrailingTrivia(catchDeclarationSyntax.Type.GetTrailingTrivia());