Files
2026-08-27 10:56:38 -06:00

36 lines
1.2 KiB
C#

using Roslyn.Utilities;
namespace Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax;
internal abstract class StructuredTriviaSyntax : CSharpSyntaxNode
{
public sealed override bool IsStructuredTrivia => true;
internal StructuredTriviaSyntax(SyntaxKind kind, DiagnosticInfo[] diagnostics = null, SyntaxAnnotation[] annotations = null)
: base(kind, diagnostics, annotations)
{
Initialize();
}
internal StructuredTriviaSyntax(ObjectReader reader)
: base(reader)
{
Initialize();
}
private void Initialize()
{
//IL_0002: Unknown result type (might be due to invalid IL or missing references)
//IL_0008: Unknown result type (might be due to invalid IL or missing references)
//IL_0009: Unknown result type (might be due to invalid IL or missing references)
//IL_001d: Unknown result type (might be due to invalid IL or missing references)
//IL_0023: Unknown result type (might be due to invalid IL or missing references)
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
((GreenNode)this).flags = (NodeFlags)(((GreenNode)this).flags | 2);
if (base.Kind == SyntaxKind.SkippedTokensTrivia)
{
((GreenNode)this).flags = (NodeFlags)(((GreenNode)this).flags | 8);
}
}
}