File: Syntax\IStructuredTriviaSyntax.cs
Web Access
Project: src\src\Compilers\Core\Portable\Microsoft.CodeAnalysis.csproj (Microsoft.CodeAnalysis)
// 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.
 
namespace Microsoft.CodeAnalysis
{
    /// <summary>
    /// Represents the root node of a structured trivia tree (for example, a preprocessor directive
    /// or a documentation comment). From this root node you can traverse back up to the containing
    /// trivia in the outer tree that contains it.
    /// </summary>
    public interface IStructuredTriviaSyntax
    {
        /// <summary>
        /// Returns the parent trivia syntax for this structured trivia syntax.
        /// </summary>
        /// <returns>The parent trivia syntax for this structured trivia syntax.</returns>
        SyntaxTrivia ParentTrivia { get; }
    }
}