|
' 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.
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Linq
Imports System.Runtime.CompilerServices
Imports System.Text
Imports Microsoft.CodeAnalysis.Text
Imports Microsoft.CodeAnalysis.VisualBasic.Symbols
Imports Microsoft.CodeAnalysis.VisualBasic.Syntax
Namespace Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax
Partial Friend MustInherit Class StructuredTriviaSyntax
Friend Sub New(ByVal kind As SyntaxKind)
MyBase.New(kind)
Initialize()
End Sub
Friend Sub New(ByVal kind As SyntaxKind, context As ISyntaxFactoryContext)
MyBase.New(kind)
Initialize()
Me.SetFactoryContext(context)
End Sub
Friend Sub New(ByVal kind As SyntaxKind, ByVal errors As DiagnosticInfo(), ByVal annotations As SyntaxAnnotation())
MyBase.New(kind, errors, annotations)
Initialize()
End Sub
Private Sub Initialize()
Me.SetFlags(NodeFlags.ContainsStructuredTrivia)
If Kind = SyntaxKind.SkippedTokensTrivia Then
Me.SetFlags(NodeFlags.ContainsSkippedText)
End If
End Sub
End Class
End Namespace
|