mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
C#: Tweaks from review comments.
This commit is contained in:
@@ -5,7 +5,7 @@ namespace Semmle.Extraction.CSharp.Entities
|
|||||||
{
|
{
|
||||||
internal sealed class ObjectInitMethod : CachedEntity, IMethodEntity
|
internal sealed class ObjectInitMethod : CachedEntity, IMethodEntity
|
||||||
{
|
{
|
||||||
Type ContainingType { get; }
|
private Type ContainingType { get; }
|
||||||
|
|
||||||
private ObjectInitMethod(Context cx, Type containingType)
|
private ObjectInitMethod(Context cx, Type containingType)
|
||||||
: base(cx)
|
: base(cx)
|
||||||
@@ -13,7 +13,7 @@ namespace Semmle.Extraction.CSharp.Entities
|
|||||||
this.ContainingType = containingType;
|
this.ContainingType = containingType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public string Name => "<object initializer>";
|
public static readonly string Name = "<object initializer>";
|
||||||
|
|
||||||
public static ObjectInitMethod Create(Context cx, Type containingType)
|
public static ObjectInitMethod Create(Context cx, Type containingType)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user