'
' Visual Basic .NET Parser
'
' Copyright (C) 2005, Microsoft Corporation. All rights reserved.
'
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTIBILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
'
'''
''' A collection of case clauses.
'''
Public NotInheritable Class CaseClauseCollection
Inherits CommaDelimitedTreeCollection(Of CaseClause)
'''
''' Constructs a new collection of case clauses.
'''
''' The case clauses in the collection.
''' The locations of the commas in the list.
''' The location of the parse tree.
Public Sub New(ByVal caseClauses As IList(Of CaseClause), ByVal commaLocations As IList(Of Location), ByVal span As Span)
MyBase.New(TreeType.CaseClauseCollection, caseClauses, commaLocations, span)
If caseClauses Is Nothing OrElse caseClauses.Count = 0 Then
Throw New ArgumentException("CaseClauseCollection cannot be empty.")
End If
End Sub
End Class