26 references to UnsafeStatementSyntax
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Statements.cs (2)
124result = BindUnsafeStatement((UnsafeStatementSyntax)node, diagnostics); 170private BoundStatement BindUnsafeStatement(UnsafeStatementSyntax node, BindingDiagnosticBag diagnostics)
Binder\LocalBinderFactory.cs (1)
686public override void VisitUnsafeStatement(UnsafeStatementSyntax node)
Compilation\MemberSemanticModel.cs (1)
2200case UnsafeStatementSyntax n:
Parser\LanguageParser.cs (1)
9819private UnsafeStatementSyntax ParseUnsafeStatement(SyntaxList<AttributeListSyntax> attributes)
Syntax\LookupPosition.cs (2)
357return ((UnsafeStatementSyntax)statement).UnsafeKeyword; 433return ((UnsafeStatementSyntax)statement).Block.CloseBraceToken;
Syntax\UnsafeStatementSyntax.cs (2)
11public UnsafeStatementSyntax Update(SyntaxToken unsafeKeyword, BlockSyntax block) 20public static UnsafeStatementSyntax UnsafeStatement(SyntaxToken unsafeKeyword, BlockSyntax block)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UseConditionalExpression\CSharpUseConditionalExpressionForReturnDiagnosticAnalyzer.cs (1)
39if (block.Syntax.Parent is UnsafeStatementSyntax or CheckedStatementSyntax)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
324if (node.GetAncestor<UnsafeStatementSyntax>() != null)
Microsoft.CodeAnalysis.CSharp.Features (7)
EditAndContinue\BreakpointSpans.cs (2)
714var unsafeStatement = (UnsafeStatementSyntax)statement;
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1838return ((UnsafeStatementSyntax)node).UnsafeKeyword.Span;
ExtractMethod\CSharpSelectionValidator.Validator.cs (1)
71UnsafeStatementSyntax or
Highlighting\KeywordHighlighters\UnsafeStatementHighlighter.cs (2)
19internal class UnsafeStatementHighlighter : AbstractKeywordHighlighter<UnsafeStatementSyntax> 27protected override void AddHighlights(UnsafeStatementSyntax unsafeStatement, List<TextSpan> highlights, CancellationToken cancellationToken)
src\Analyzers\CSharp\Analyzers\UseConditionalExpression\CSharpUseConditionalExpressionForReturnDiagnosticAnalyzer.cs (1)
39if (block.Syntax.Parent is UnsafeStatementSyntax or CheckedStatementSyntax)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Generated\Syntax.Test.xml.Generated.cs (5)
10631private static UnsafeStatementSyntax GenerateUnsafeStatement() 12597var node = GenerateUnsafeStatement(); 12602var newNode = node.WithAttributeLists(node.AttributeLists).WithUnsafeKeyword(node.UnsafeKeyword).WithBlock(node.Block); 17583var oldNode = GenerateUnsafeStatement(); 17599var oldNode = GenerateUnsafeStatement();
Parsing\StatementParsingTests.cs (2)
1461var us = (UnsafeStatementSyntax)statement;
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
324if (node.GetAncestor<UnsafeStatementSyntax>() != null)