47 lines
1.7 KiB
C#
47 lines
1.7 KiB
C#
using Roslyn.Utilities;
|
|
|
|
namespace Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax;
|
|
|
|
internal abstract class DirectiveTriviaSyntax : StructuredTriviaSyntax
|
|
{
|
|
public sealed override bool IsDirective => true;
|
|
|
|
public abstract SyntaxToken HashToken { get; }
|
|
|
|
public abstract SyntaxToken EndOfDirectiveToken { get; }
|
|
|
|
public abstract bool IsActive { get; }
|
|
|
|
internal override DirectiveStack ApplyDirectives(DirectiveStack stack)
|
|
{
|
|
return stack.Add(new Directive(this));
|
|
}
|
|
|
|
internal DirectiveTriviaSyntax(SyntaxKind kind, DiagnosticInfo[]? diagnostics, SyntaxAnnotation[]? annotations)
|
|
: base(kind, diagnostics, annotations)
|
|
{
|
|
//IL_000b: Unknown result type (might be due to invalid IL or missing references)
|
|
//IL_0011: Unknown result type (might be due to invalid IL or missing references)
|
|
//IL_0012: Unknown result type (might be due to invalid IL or missing references)
|
|
((GreenNode)this).flags = (NodeFlags)(((GreenNode)this).flags | 4);
|
|
}
|
|
|
|
internal DirectiveTriviaSyntax(SyntaxKind kind)
|
|
: base(kind)
|
|
{
|
|
//IL_000b: Unknown result type (might be due to invalid IL or missing references)
|
|
//IL_0011: Unknown result type (might be due to invalid IL or missing references)
|
|
//IL_0012: Unknown result type (might be due to invalid IL or missing references)
|
|
((GreenNode)this).flags = (NodeFlags)(((GreenNode)this).flags | 4);
|
|
}
|
|
|
|
protected DirectiveTriviaSyntax(ObjectReader reader)
|
|
: base(reader)
|
|
{
|
|
//IL_0009: Unknown result type (might be due to invalid IL or missing references)
|
|
//IL_000f: Unknown result type (might be due to invalid IL or missing references)
|
|
//IL_0010: Unknown result type (might be due to invalid IL or missing references)
|
|
((GreenNode)this).flags = (NodeFlags)(((GreenNode)this).flags | 4);
|
|
}
|
|
}
|