author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Sat, 05 Oct 2013 01:02:31 +0100 | |
changeset 124 | 73fa59be4774 |
parent 104 | 3b05b2d777dd |
child 249 | 8bc64027b189 |
permissions | -rw-r--r-- |
81 | 1 |
"{ Package: 'jv:smallsense' }" |
2 |
||
3 |
"{ NameSpace: SmallSense }" |
|
4 |
||
5 |
ParseNode subclass:#SelectorNode |
|
6 |
instanceVariableNames:'value' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
104
3b05b2d777dd
Some more support for complete-as-you-type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
102
diff
changeset
|
9 |
category:'SmallSense-Smalltalk' |
81 | 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 |
||
104
3b05b2d777dd
Some more support for complete-as-you-type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
102
diff
changeset
|
57 |
!SelectorNode methodsFor:'navigation-SmallSense'! |
3b05b2d777dd
Some more support for complete-as-you-type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
102
diff
changeset
|
58 |
|
3b05b2d777dd
Some more support for complete-as-you-type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
102
diff
changeset
|
59 |
navigateToUsing: navigator |
3b05b2d777dd
Some more support for complete-as-you-type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
102
diff
changeset
|
60 |
self parent navigateToUsing: navigator |
3b05b2d777dd
Some more support for complete-as-you-type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
102
diff
changeset
|
61 |
|
3b05b2d777dd
Some more support for complete-as-you-type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
102
diff
changeset
|
62 |
"Created: / 24-09-2013 / 10:04:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3b05b2d777dd
Some more support for complete-as-you-type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
102
diff
changeset
|
63 |
! ! |
102
538fc4ef040c
CodeNavigation service refactored to support Java (not yet done, though)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
64 |
|
81 | 65 |
!SelectorNode methodsFor:'testing'! |
66 |
||
67 |
isSelector |
|
68 |
||
69 |
^true |
|
70 |
||
71 |
"Created: / 16-02-2012 / 21:04:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
72 |
! ! |
|
73 |
||
124 | 74 |
!SelectorNode class methodsFor:'documentation'! |
75 |
||
76 |
version_HG |
|
77 |
||
78 |
^ '$Changeset: <not expanded> $' |
|
79 |
! ! |
|
80 |