mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
21 lines
663 B
C#
21 lines
663 B
C#
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
|
using System.IO;
|
|
|
|
namespace Semmle.Extraction.CSharp.Entities.Expressions
|
|
{
|
|
// new Foo(...) { ... }.
|
|
internal class ExplicitObjectCreation : BaseObjectCreation<ObjectCreationExpressionSyntax>
|
|
{
|
|
private ExplicitObjectCreation(ExpressionNodeInfo info) : base(info) { }
|
|
|
|
public static Expression Create(ExpressionNodeInfo info) => new ExplicitObjectCreation(info).TryPopulate();
|
|
|
|
protected override void PopulateExpression(TextWriter trapFile)
|
|
{
|
|
base.PopulateExpression(trapFile);
|
|
|
|
TypeMention.Create(Context, Syntax.Type, this, Type);
|
|
}
|
|
}
|
|
}
|