mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
19 lines
598 B
C#
19 lines
598 B
C#
using System.IO; // lgtm[cs/similar-file]
|
|
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
|
using Semmle.Extraction.Kinds;
|
|
|
|
namespace Semmle.Extraction.CSharp.Entities.Expressions
|
|
{
|
|
internal class MakeRef : Expression<MakeRefExpressionSyntax>
|
|
{
|
|
private MakeRef(ExpressionNodeInfo info) : base(info.SetKind(ExprKind.REF)) { }
|
|
|
|
public static Expression Create(ExpressionNodeInfo info) => new MakeRef(info).TryPopulate();
|
|
|
|
protected override void PopulateExpression(TextWriter trapFile)
|
|
{
|
|
Create(Context, Syntax.Expression, this, 0);
|
|
}
|
|
}
|
|
}
|