mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
C#: Drop redundant columns from files and folders relations
This commit is contained in:
@@ -8,7 +8,7 @@ namespace Semmle.Extraction.Entities
|
||||
|
||||
public override void Populate(TextWriter trapFile)
|
||||
{
|
||||
trapFile.folders(this, Symbol.Value, Symbol.NameWithoutExtension);
|
||||
trapFile.folders(this, Symbol.Value);
|
||||
if (Symbol.ParentDirectory is PathTransformer.ITransformedPath parent)
|
||||
trapFile.containerparent(Create(Context, parent), this);
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Semmle.Extraction.Entities
|
||||
|
||||
public override void Populate(TextWriter trapFile)
|
||||
{
|
||||
trapFile.files(this, "", "", "");
|
||||
trapFile.files(this, "");
|
||||
}
|
||||
|
||||
public override void WriteId(EscapingTextWriter trapFile)
|
||||
|
||||
@@ -18,14 +18,14 @@ namespace Semmle.Extraction
|
||||
trapFile.WriteTuple("extractor_messages", error, (int)severity, origin, errorMessage, entityText, location, stackTrace);
|
||||
}
|
||||
|
||||
public static void files(this System.IO.TextWriter trapFile, File file, string fullName, string name, string extension)
|
||||
public static void files(this System.IO.TextWriter trapFile, File file, string fullName)
|
||||
{
|
||||
trapFile.WriteTuple("files", file, fullName, name, extension, 0);
|
||||
trapFile.WriteTuple("files", file, fullName);
|
||||
}
|
||||
|
||||
internal static void folders(this System.IO.TextWriter trapFile, Folder folder, string path, string name)
|
||||
internal static void folders(this System.IO.TextWriter trapFile, Folder folder, string path)
|
||||
{
|
||||
trapFile.WriteTuple("folders", folder, path, name);
|
||||
trapFile.WriteTuple("folders", folder, path);
|
||||
}
|
||||
|
||||
public static void locations_default(this System.IO.TextWriter trapFile, SourceLocation label, Entities.File file, int startLine, int startCol, int endLine, int endCol)
|
||||
|
||||
Reference in New Issue
Block a user