mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
24 lines
777 B
C#
24 lines
777 B
C#
using Microsoft.CodeAnalysis.CSharp.Syntax; // lgtm[cs/similar-file]
|
|
using Semmle.Extraction.Kinds;
|
|
|
|
namespace Semmle.Extraction.CSharp.Entities.Statements
|
|
{
|
|
class Unchecked : Statement<CheckedStatementSyntax>
|
|
{
|
|
Unchecked(Context cx, CheckedStatementSyntax stmt, IStatementParentEntity parent, int child)
|
|
: base(cx, stmt, StmtKind.UNCHECKED, parent, child) { }
|
|
|
|
public static Unchecked Create(Context cx, CheckedStatementSyntax node, IStatementParentEntity parent, int child)
|
|
{
|
|
var ret = new Unchecked(cx, node, parent, child);
|
|
ret.TryPopulate();
|
|
return ret;
|
|
}
|
|
|
|
protected override void Populate()
|
|
{
|
|
Statement.Create(cx, Stmt.Block, this, 0);
|
|
}
|
|
}
|
|
}
|