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

@@ -112,11 +112,11 @@ namespace Semmle.Extraction.CSharp.Entities
Extraction.Entities.Location location;
public override void Populate()
public override void Populate(TextWriter trapFile)
{
location = Context.Create(Location);
Context.Emit(Tuples.commentline(this, Type == CommentLineType.MultilineContinuation ? CommentLineType.Multiline : Type, Text, RawText));
Context.Emit(Tuples.commentline_location(this, location));
trapFile.Emit(Tuples.commentline(this, Type == CommentLineType.MultilineContinuation ? CommentLineType.Multiline : Type, Text, RawText));
trapFile.Emit(Tuples.commentline_location(this, location));
}
public override Microsoft.CodeAnalysis.Location ReportingLocation => location.symbol;