mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
25 lines
833 B
C#
25 lines
833 B
C#
using System.IO; // lgtm[cs/similar-file]
|
|
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
|
using Semmle.Extraction.Kinds;
|
|
|
|
namespace Semmle.Extraction.CSharp.Entities.Statements
|
|
{
|
|
internal class Checked : Statement<CheckedStatementSyntax>
|
|
{
|
|
private Checked(Context cx, CheckedStatementSyntax stmt, IStatementParentEntity parent, int child)
|
|
: base(cx, stmt, StmtKind.CHECKED, parent, child) { }
|
|
|
|
public static Checked Create(Context cx, CheckedStatementSyntax node, IStatementParentEntity parent, int child)
|
|
{
|
|
var ret = new Checked(cx, node, parent, child);
|
|
ret.TryPopulate();
|
|
return ret;
|
|
}
|
|
|
|
protected override void PopulateStatement(TextWriter trapFile)
|
|
{
|
|
Statement.Create(Context, Stmt.Block, this, 0);
|
|
}
|
|
}
|
|
}
|