81
|
1 |
"{ Package: 'jv:smallsense' }"
|
|
2 |
|
|
3 |
"{ NameSpace: SmallSense }"
|
|
4 |
|
|
5 |
ParseNode subclass:#SelectorNode
|
|
6 |
instanceVariableNames:'value'
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'SmallSense-Core'
|
|
10 |
!
|
|
11 |
|
|
12 |
!SelectorNode class methodsFor:'documentation'!
|
|
13 |
|
|
14 |
documentation
|
|
15 |
"
|
|
16 |
A (helper) node that represents a selector (or its part).
|
|
17 |
SelectorNodes are not directly created nor used by the
|
|
18 |
parser/compiler itself.
|
|
19 |
|
|
20 |
Some custom subclasses (syntax highlighters for instance)
|
|
21 |
makes use of it.
|
|
22 |
|
|
23 |
[author:]
|
|
24 |
Jan Vrany <jan.vrany@fit.cvut.cz>
|
|
25 |
|
|
26 |
[instance variables:]
|
|
27 |
|
|
28 |
[class variables:]
|
|
29 |
|
|
30 |
[see also:]
|
|
31 |
SyntaxHighlighter2
|
|
32 |
|
|
33 |
"
|
|
34 |
! !
|
|
35 |
|
|
36 |
!SelectorNode class methodsFor:'instance creation'!
|
|
37 |
|
|
38 |
value: selector from: start to: end
|
|
39 |
|
|
40 |
^self new
|
|
41 |
value: selector;
|
|
42 |
startPosition:start endPosition: end
|
|
43 |
|
|
44 |
"Created: / 16-02-2012 / 20:56:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
45 |
! !
|
|
46 |
|
|
47 |
!SelectorNode methodsFor:'accessing'!
|
|
48 |
|
|
49 |
value
|
|
50 |
^ value
|
|
51 |
!
|
|
52 |
|
|
53 |
value:aString
|
|
54 |
value := aString.
|
|
55 |
! !
|
|
56 |
|
|
57 |
!SelectorNode methodsFor:'testing'!
|
|
58 |
|
|
59 |
isSelector
|
|
60 |
|
|
61 |
^true
|
|
62 |
|
|
63 |
"Created: / 16-02-2012 / 21:04:15 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
64 |
! !
|
|
65 |
|