15 references to TryKeyword
Microsoft.CodeAnalysis.CSharp (7)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1954
=> node.Update(VisitList(node.AttributeLists), VisitToken(node.
TryKeyword
), (BlockSyntax?)Visit(node.Block) ?? throw new ArgumentNullException("block"), VisitList(node.Catches), (FinallyClauseSyntax?)Visit(node.Finally));
_generated\2\Syntax.xml.Syntax.Generated.cs (5)
9047
if (attributeLists != this.AttributeLists || tryKeyword != this.
TryKeyword
|| block != this.Block || catches != this.Catches || @finally != this.Finally)
9058
public new TryStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.
TryKeyword
, this.Block, this.Catches, this.Finally);
9060
public TryStatementSyntax WithBlock(BlockSyntax block) => Update(this.AttributeLists, this.
TryKeyword
, block, this.Catches, this.Finally);
9061
public TryStatementSyntax WithCatches(SyntaxList<CatchClauseSyntax> catches) => Update(this.AttributeLists, this.
TryKeyword
, this.Block, catches, this.Finally);
9062
public TryStatementSyntax WithFinally(FinallyClauseSyntax? @finally) => Update(this.AttributeLists, this.
TryKeyword
, this.Block, this.Catches, @finally);
Syntax\LookupPosition.cs (1)
355
return ((TryStatementSyntax)statement).
TryKeyword
;
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (2)
225
if (tryStatement is {
TryKeyword
.IsMissing: false, Block: not null } && !tryStatement.Block.CloseBraceToken.IsMissing)
227
AddSuppressWrappingIfOnSingleLineOperation(list, tryStatement.
TryKeyword
, tryStatement.Block.CloseBraceToken);
Microsoft.CodeAnalysis.CSharp.Features (2)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1780
return ((TryStatementSyntax)node).
TryKeyword
.Span;
Highlighting\KeywordHighlighters\TryStatementHighlighter.cs (1)
30
highlights.Add(tryStatement.
TryKeyword
.Span);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (2)
225
if (tryStatement is {
TryKeyword
.IsMissing: false, Block: not null } && !tryStatement.Block.CloseBraceToken.IsMissing)
227
AddSuppressWrappingIfOnSingleLineOperation(list, tryStatement.
TryKeyword
, tryStatement.Block.CloseBraceToken);
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (2)
225
if (tryStatement is {
TryKeyword
.IsMissing: false, Block: not null } && !tryStatement.Block.CloseBraceToken.IsMissing)
227
AddSuppressWrappingIfOnSingleLineOperation(list, tryStatement.
TryKeyword
, tryStatement.Block.CloseBraceToken);