C#: Refactoring expression and statement population.

This commit is contained in:
Calum Grant
2019-08-09 16:52:53 +01:00
parent e41e8d6547
commit 486c192dda
110 changed files with 602 additions and 437 deletions

View File

@@ -1,5 +1,6 @@
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Semmle.Extraction.Kinds;
using System.IO;
namespace Semmle.Extraction.CSharp.Entities.Statements
{
@@ -15,7 +16,7 @@ namespace Semmle.Extraction.CSharp.Entities.Statements
return ret;
}
protected override void Populate()
protected override void PopulateStatement(TextWriter trapFile)
{
Expression.Create(cx, Stmt.Condition, this, 0);
Create(cx, Stmt.Statement, this, 1);