mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
24 lines
726 B
C#
24 lines
726 B
C#
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
|
using Semmle.Extraction.Kinds;
|
|
|
|
namespace Semmle.Extraction.CSharp.Entities.Statements
|
|
{
|
|
class Unsafe : Statement<UnsafeStatementSyntax>
|
|
{
|
|
Unsafe(Context cx, UnsafeStatementSyntax node, IStatementParentEntity parent, int child)
|
|
: base(cx, node, StmtKind.UNSAFE, parent, child) { }
|
|
|
|
public static Unsafe Create(Context cx, UnsafeStatementSyntax node, IStatementParentEntity parent, int child)
|
|
{
|
|
var ret = new Unsafe(cx, node, parent, child);
|
|
ret.TryPopulate();
|
|
return ret;
|
|
}
|
|
|
|
protected override void Populate()
|
|
{
|
|
Create(cx, Stmt.Block, this, 0);
|
|
}
|
|
}
|
|
}
|