forked from lloyddewit/RScript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clsRElement.vb
32 lines (26 loc) · 1.17 KB
/
clsRElement.vb
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
Public Class clsRElement
Public strTxt As String
Public bBracketed As Boolean
Public strPrefix As String = ""
Public Sub New(clsToken As clsRToken,
Optional bBracketedNew As Boolean = False,
Optional strPackagePrefix As String = "")
strTxt = clsToken.strTxt
bBracketed = bBracketedNew
strPrefix = strPackagePrefix &
If(clsToken.lstTokens.Count > 0 AndAlso
clsToken.lstTokens.Item(0).enuToken = clsRToken.typToken.RPresentation,
clsToken.lstTokens.Item(0).strTxt, "")
End Sub
'''--------------------------------------------------------------------------------------------
''' <summary> TODO. </summary>
'''
''' <returns> as debug string. </returns>
'''--------------------------------------------------------------------------------------------
Public Function GetAsDebugString() As String
Return "Element: " & vbLf &
"strTxt: " & strTxt & vbLf &
"bBracketed: " & bBracketed & vbLf &
"strPrefix: " & strPrefix & vbLf
End Function
End Class