using Microsoft.CodeAnalysis.CSharp.Syntax;
using Semmle.Extraction.Kinds;
using System.IO;

namespace Semmle.Extraction.CSharp.Entities.Statements
{
    internal class Continue : Statement<ContinueStatementSyntax>
    {
        private Continue(Context cx, ContinueStatementSyntax stmt, IStatementParentEntity parent, int child)
            : base(cx, stmt, StmtKind.CONTINUE, parent, child) { }

        public static Continue Create(Context cx, ContinueStatementSyntax node, IStatementParentEntity parent, int child)
        {
            var ret = new Continue(cx, node, parent, child);
            ret.TryPopulate();
            return ret;
        }

        protected override void PopulateStatement(TextWriter trapFile) { }
    }
}
