mirror of
https://github.com/github/codeql.git
synced 2025-12-19 10:23:15 +01:00
19 lines
529 B
C#
19 lines
529 B
C#
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
|
using System.IO;
|
|
|
|
namespace Semmle.Extraction.CSharp.Entities
|
|
{
|
|
internal class ErrorDirective : PreprocessorDirective<ErrorDirectiveTriviaSyntax>
|
|
{
|
|
public ErrorDirective(Context cx, ErrorDirectiveTriviaSyntax trivia)
|
|
: base(cx, trivia)
|
|
{
|
|
}
|
|
|
|
protected override void PopulatePreprocessor(TextWriter trapFile)
|
|
{
|
|
trapFile.directive_errors(this, trivia.EndOfDirectiveToken.LeadingTrivia.ToString());
|
|
}
|
|
}
|
|
}
|