4325
|
1 |
"{ Encoding: utf8 }"
|
|
2 |
|
2818
|
3 |
"{ Package: 'stx:libcomp' }"
|
|
4 |
|
4325
|
5 |
"{ NameSpace: Smalltalk }"
|
|
6 |
|
2818
|
7 |
ParseNode subclass:#SelectorNode
|
|
8 |
instanceVariableNames:'value'
|
|
9 |
classVariableNames:''
|
|
10 |
poolDictionaries:''
|
|
11 |
category:'Interface-CodeView-Syntax'
|
|
12 |
!
|
|
13 |
|
|
14 |
!SelectorNode class methodsFor:'documentation'!
|
|
15 |
|
|
16 |
documentation
|
|
17 |
"
|
|
18 |
A (helper) node that represents a selector (or its part).
|
|
19 |
SelectorNodes are not directly created nor used by the
|
|
20 |
parser/compiler itself.
|
|
21 |
|
|
22 |
Some custom subclasses (syntax highlighters for instance)
|
|
23 |
makes use of it.
|
|
24 |
|
|
25 |
[author:]
|
|
26 |
Jan Vrany <jan.vrany@fit.cvut.cz>
|
|
27 |
|
|
28 |
[instance variables:]
|
|
29 |
|
|
30 |
[class variables:]
|
|
31 |
|
|
32 |
[see also:]
|
|
33 |
SyntaxHighlighter2
|
|
34 |
|
|
35 |
"
|
|
36 |
! !
|
|
37 |
|
|
38 |
!SelectorNode class methodsFor:'instance creation'!
|
|
39 |
|
|
40 |
value: selector from: start to: end
|
|
41 |
|
|
42 |
^self new
|
|
43 |
value: selector;
|
|
44 |
startPosition:start endPosition: end
|
|
45 |
|
|
46 |
"Created: / 16-02-2012 / 20:56:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
47 |
! !
|
|
48 |
|
|
49 |
!SelectorNode methodsFor:'accessing'!
|
|
50 |
|
3495
|
51 |
name
|
|
52 |
"req'd because ParseTreeIndex::Element sends it"
|
|
53 |
|
|
54 |
^ value
|
|
55 |
!
|
|
56 |
|
3388
|
57 |
selector
|
|
58 |
^ value
|
|
59 |
|
|
60 |
"Created: / 25-02-2014 / 22:08:42 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
61 |
!
|
|
62 |
|
2818
|
63 |
value
|
|
64 |
^ value
|
|
65 |
!
|
|
66 |
|
|
67 |
value:aString
|
|
68 |
value := aString.
|
|
69 |
! !
|
|
70 |
|
|
71 |
!SelectorNode methodsFor:'testing'!
|
|
72 |
|
|
73 |
isSelector
|
4325
|
74 |
^ true
|
2818
|
75 |
|
|
76 |
"Created: / 16-02-2012 / 21:04:15 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
4325
|
77 |
"Modified (format): / 22-01-2019 / 16:13:10 / Stefan Vogel"
|
2818
|
78 |
! !
|
|
79 |
|
|
80 |
!SelectorNode class methodsFor:'documentation'!
|
|
81 |
|
|
82 |
version
|
4325
|
83 |
^ '$Header$'
|
2818
|
84 |
!
|
|
85 |
|
|
86 |
version_CVS
|
4325
|
87 |
^ '$Header$'
|
2818
|
88 |
! !
|
3388
|
89 |
|