/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Compilers/CSharp/Portable/Syntax/TryStatementSyntax.cs
26 строк
1 KB
Tomáš Matoušek
IDE code generator service refactoring (#58244)
11 янв 2022, 23:39
Не верифицирован
11 янв 2022, 23:39
59c9b29
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Microsoft.CodeAnalysis.CSharp.Syntax { public partial class TryStatementSyntax { public TryStatementSyntax Update(SyntaxToken tryKeyword, BlockSyntax block, SyntaxList<CatchClauseSyntax> catches, FinallyClauseSyntax @finally) => Update(AttributeLists, tryKeyword, block, catches, @finally); } } namespace Microsoft.CodeAnalysis.CSharp { public partial class SyntaxFactory { public static TryStatementSyntax TryStatement(BlockSyntax block, SyntaxList<CatchClauseSyntax> catches, FinallyClauseSyntax? @finally) => TryStatement(attributeLists: default, block, catches, @finally); public static TryStatementSyntax TryStatement(SyntaxToken tryKeyword, BlockSyntax block, SyntaxList<CatchClauseSyntax> catches, FinallyClauseSyntax? @finally) => TryStatement(attributeLists: default, tryKeyword, block, catches, @finally); } }