mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
C#: Remove ITrapBuilder in favour of TextWriter.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user