mirror of
https://github.com/github/codeql.git
synced 2025-12-19 10:23:15 +01:00
23 lines
631 B
C#
23 lines
631 B
C#
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
|
using System.IO;
|
|
|
|
namespace Semmle.Extraction.CSharp.Entities
|
|
{
|
|
internal class EndIfDirective : PreprocessorDirective<EndIfDirectiveTriviaSyntax>
|
|
{
|
|
private readonly IfDirective start;
|
|
|
|
public EndIfDirective(Context cx, EndIfDirectiveTriviaSyntax trivia, IfDirective start)
|
|
: base(cx, trivia, populateFromBase: false)
|
|
{
|
|
this.start = start;
|
|
TryPopulate();
|
|
}
|
|
|
|
protected override void PopulatePreprocessor(TextWriter trapFile)
|
|
{
|
|
trapFile.directive_endifs(this, start);
|
|
}
|
|
}
|
|
}
|