mirror of
https://github.com/github/codeql.git
synced 2025-12-19 02:13:17 +01:00
19 lines
505 B
C#
19 lines
505 B
C#
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
|
using System.IO;
|
|
|
|
namespace Semmle.Extraction.CSharp.Entities
|
|
{
|
|
internal class DefineDirective : PreprocessorDirective<DefineDirectiveTriviaSyntax>
|
|
{
|
|
public DefineDirective(Context cx, DefineDirectiveTriviaSyntax trivia)
|
|
: base(cx, trivia)
|
|
{
|
|
}
|
|
|
|
protected override void PopulatePreprocessor(TextWriter trapFile)
|
|
{
|
|
trapFile.directive_defines(this, trivia.Name.ToString());
|
|
}
|
|
}
|
|
}
|