3841
|
1 |
"
|
|
2 |
COPYRIGHT (c) 2006 by eXept Software AG
|
|
3 |
All Rights Reserved
|
4325
|
4 |
|
3841
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
2818
|
12 |
"{ Package: 'stx:libcomp' }"
|
|
13 |
|
4325
|
14 |
"{ NameSpace: Smalltalk }"
|
|
15 |
|
2818
|
16 |
ParseNode subclass:#SelectorNode
|
|
17 |
instanceVariableNames:'value'
|
|
18 |
classVariableNames:''
|
|
19 |
poolDictionaries:''
|
|
20 |
category:'Interface-CodeView-Syntax'
|
|
21 |
!
|
|
22 |
|
|
23 |
!SelectorNode class methodsFor:'documentation'!
|
|
24 |
|
3841
|
25 |
copyright
|
|
26 |
"
|
|
27 |
COPYRIGHT (c) 2006 by eXept Software AG
|
|
28 |
All Rights Reserved
|
|
29 |
|
|
30 |
This software is furnished under a license and may be used
|
|
31 |
only in accordance with the terms of that license and with the
|
|
32 |
inclusion of the above copyright notice. This software may not
|
|
33 |
be provided or otherwise made available to, or used by, any
|
|
34 |
other person. No title to or ownership of the software is
|
|
35 |
hereby transferred.
|
|
36 |
"
|
|
37 |
!
|
|
38 |
|
2818
|
39 |
documentation
|
|
40 |
"
|
|
41 |
A (helper) node that represents a selector (or its part).
|
|
42 |
SelectorNodes are not directly created nor used by the
|
|
43 |
parser/compiler itself.
|
|
44 |
|
|
45 |
Some custom subclasses (syntax highlighters for instance)
|
|
46 |
makes use of it.
|
|
47 |
|
|
48 |
[author:]
|
|
49 |
Jan Vrany <jan.vrany@fit.cvut.cz>
|
|
50 |
|
|
51 |
[instance variables:]
|
|
52 |
|
|
53 |
[class variables:]
|
|
54 |
|
|
55 |
[see also:]
|
|
56 |
SyntaxHighlighter2
|
|
57 |
|
|
58 |
"
|
|
59 |
! !
|
|
60 |
|
|
61 |
!SelectorNode class methodsFor:'instance creation'!
|
|
62 |
|
|
63 |
value: selector from: start to: end
|
|
64 |
|
|
65 |
^self new
|
|
66 |
value: selector;
|
|
67 |
startPosition:start endPosition: end
|
|
68 |
|
|
69 |
"Created: / 16-02-2012 / 20:56:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
70 |
! !
|
|
71 |
|
|
72 |
!SelectorNode methodsFor:'accessing'!
|
|
73 |
|
3495
|
74 |
name
|
|
75 |
"req'd because ParseTreeIndex::Element sends it"
|
|
76 |
|
|
77 |
^ value
|
|
78 |
!
|
|
79 |
|
3388
|
80 |
selector
|
|
81 |
^ value
|
|
82 |
|
|
83 |
"Created: / 25-02-2014 / 22:08:42 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
84 |
!
|
|
85 |
|
2818
|
86 |
value
|
|
87 |
^ value
|
|
88 |
!
|
|
89 |
|
|
90 |
value:aString
|
|
91 |
value := aString.
|
|
92 |
! !
|
|
93 |
|
|
94 |
!SelectorNode methodsFor:'testing'!
|
|
95 |
|
|
96 |
isSelector
|
4325
|
97 |
^ true
|
2818
|
98 |
|
|
99 |
"Created: / 16-02-2012 / 21:04:15 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
4325
|
100 |
"Modified (format): / 22-01-2019 / 16:13:10 / Stefan Vogel"
|
2818
|
101 |
! !
|
|
102 |
|
|
103 |
!SelectorNode class methodsFor:'documentation'!
|
|
104 |
|
|
105 |
version
|
4325
|
106 |
^ '$Header$'
|
2818
|
107 |
!
|
|
108 |
|
|
109 |
version_CVS
|
4325
|
110 |
^ '$Header$'
|
2818
|
111 |
! !
|
3388
|
112 |
|