mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Remove redundant IEntity implemented interface declaration and explit interface member implemenration
This commit is contained in:
@@ -61,7 +61,7 @@ namespace Semmle.Extraction.CIL.Entities
|
||||
cx2.Populate(this);
|
||||
}
|
||||
|
||||
TrapStackBehaviour IEntity.TrapStackBehaviour => TrapStackBehaviour.NoLabel;
|
||||
public TrapStackBehaviour TrapStackBehaviour => TrapStackBehaviour.NoLabel;
|
||||
|
||||
public abstract IEnumerable<Type> TypeParameters { get; }
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Semmle.Extraction.CIL.Entities
|
||||
/// <summary>
|
||||
/// A CIL instruction.
|
||||
/// </summary>
|
||||
internal class Instruction : UnlabelledEntity, IEntity
|
||||
internal class Instruction : UnlabelledEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// The additional data following the opcode, if any.
|
||||
@@ -289,11 +289,6 @@ namespace Semmle.Extraction.CIL.Entities
|
||||
}
|
||||
}
|
||||
|
||||
Label IEntity.Label
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
private readonly byte[] data;
|
||||
|
||||
private int PayloadSize => payloadSizes[(int)PayloadType];
|
||||
|
||||
@@ -31,8 +31,6 @@ namespace Semmle.Extraction.CIL.Entities
|
||||
|
||||
public abstract string IdSuffix { get; }
|
||||
|
||||
Location IEntity.ReportingLocation => throw new NotImplementedException();
|
||||
|
||||
public void Extract(Context cx2) { cx2.Populate(this); }
|
||||
|
||||
public abstract IEnumerable<IExtractionProduct> Contents { get; }
|
||||
@@ -44,7 +42,8 @@ namespace Semmle.Extraction.CIL.Entities
|
||||
return writer.ToString();
|
||||
}
|
||||
|
||||
TrapStackBehaviour IEntity.TrapStackBehaviour => TrapStackBehaviour.NoLabel;
|
||||
public TrapStackBehaviour TrapStackBehaviour => TrapStackBehaviour.NoLabel;
|
||||
public Location ReportingLocation => throw new NotImplementedException();
|
||||
|
||||
public abstract IEnumerable<Type> MethodParameters { get; }
|
||||
public abstract IEnumerable<Type> TypeParameters { get; }
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace Semmle.Extraction.CIL
|
||||
cx.Cx.AddFreshLabel(this);
|
||||
}
|
||||
|
||||
TrapStackBehaviour IEntity.TrapStackBehaviour => TrapStackBehaviour.NoLabel;
|
||||
public TrapStackBehaviour TrapStackBehaviour => TrapStackBehaviour.NoLabel;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -115,7 +115,7 @@ namespace Semmle.Extraction.CIL
|
||||
return writer.ToString();
|
||||
}
|
||||
|
||||
TrapStackBehaviour IEntity.TrapStackBehaviour => TrapStackBehaviour.NoLabel;
|
||||
public TrapStackBehaviour TrapStackBehaviour => TrapStackBehaviour.NoLabel;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user