C#: Remove ITrapBuilder in favour of TextWriter.

This commit is contained in:
Calum Grant
2019-08-08 18:15:30 +01:00
parent aeb38a1757
commit e41e8d6547
44 changed files with 552 additions and 554 deletions

View File

@@ -1,4 +1,5 @@
using Semmle.Extraction.Entities;
using System.IO;
namespace Semmle.Extraction
{
@@ -20,6 +21,16 @@ namespace Semmle.Extraction
get; set;
}
public void WriteId(TextWriter writer)
{
writer.Write('*');
}
public void WriteQuotedId(TextWriter writer)
{
WriteId(writer);
}
public override string ToString() => Label.ToString();
public IId Id => FreshId.Instance;