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