-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSourceRegion.vb
More file actions
56 lines (51 loc) · 1.59 KB
/
SourceRegion.vb
File metadata and controls
56 lines (51 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
'
' Visual Basic .NET Parser
'
' Copyright (C) 2004, 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.
'
''' <summary>
''' A region marked in the source code.
''' </summary>
Public NotInheritable Class SourceRegion
Private ReadOnly _Start, _Finish As Location
Private ReadOnly _Description As String
''' <summary>
''' The start location of the region.
''' </summary>
Public ReadOnly Property Start() As Location
Get
Return _Start
End Get
End Property
''' <summary>
''' The end location of the region.
''' </summary>
Public ReadOnly Property Finish() As Location
Get
Return _Finish
End Get
End Property
''' <summary>
''' The description of the region.
''' </summary>
Public ReadOnly Property Description() As String
Get
Return _Description
End Get
End Property
''' <summary>
''' Constructs a new source region.
''' </summary>
''' <param name="start">The start location of the region.</param>
''' <param name="finish">The end location of the region.</param>
''' <param name="description">The description of the region.</param>
Public Sub New(ByVal start As Location, ByVal finish As Location, ByVal description As String)
_Start = start
_Finish = finish
_Description = description
End Sub
End Class