/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Compilers/CSharp/Portable/Syntax/InternalSyntax/StructuredTriviaSyntax.cs
26 строк
881 B
Cyrus Najmabadi
Cleanup handling of flags in internal syntax nodes. (#72130)
19 фев 2024, 22:27
Не верифицирован
19 фев 2024, 22:27
449a170
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax { internal abstract partial class StructuredTriviaSyntax : CSharpSyntaxNode { internal StructuredTriviaSyntax(SyntaxKind kind, DiagnosticInfo[] diagnostics = null, SyntaxAnnotation[] annotations = null) : base(kind, diagnostics, annotations) { SetFlags(NodeFlags.ContainsStructuredTrivia); if (this.Kind == SyntaxKind.SkippedTokensTrivia) { SetFlags(NodeFlags.ContainsSkippedText); } } public sealed override bool IsStructuredTrivia => true; } }