author | Patrik Svestka <patrik.svestka@gmail.com> |
Wed, 14 Nov 2018 12:57:13 +0100 | |
branch | jv |
changeset 1095 | 87f223484bc3 |
parent 613 | 7026d389451d |
permissions | -rw-r--r-- |
1095
87f223484bc3
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
613
diff
changeset
|
1 |
"{ Encoding: utf8 }" |
87f223484bc3
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
613
diff
changeset
|
2 |
|
248 | 3 |
"{ Package: 'stx:goodies/monticello' }" |
4 |
||
5 |
MCDoItParser subclass:#MCClassTraitParser |
|
6 |
instanceVariableNames:'' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
613 | 9 |
category:'SCM-Monticello-Modeling' |
248 | 10 |
! |
11 |
||
12 |
||
13 |
!MCClassTraitParser class methodsFor:'as yet unclassified'! |
|
14 |
||
15 |
pattern |
|
16 |
^ '*classTrait*uses:*' |
|
17 |
! ! |
|
18 |
||
19 |
!MCClassTraitParser methodsFor:'as yet unclassified'! |
|
20 |
||
21 |
addDefinitionsTo: aCollection |
|
22 |
| tokens definition traitCompositionString | |
|
23 |
tokens := Scanner new scanTokens: source. |
|
24 |
traitCompositionString := ((ReadStream on: source) |
|
25 |
match: 'uses:'; |
|
26 |
upToEnd) withBlanksTrimmed. |
|
27 |
definition := MCClassTraitDefinition |
|
28 |
baseTraitName: (tokens at: 1) |
|
29 |
classTraitComposition: traitCompositionString. |
|
30 |
aCollection add: definition |
|
31 |
||
32 |
! ! |
|
33 |
||
34 |
!MCClassTraitParser class methodsFor:'documentation'! |
|
35 |
||
36 |
version |
|
613 | 37 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCClassTraitParser.st,v 1.3 2012-09-11 21:20:47 cg Exp $' |
248 | 38 |
! |
39 |
||
40 |
version_CVS |
|
613 | 41 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCClassTraitParser.st,v 1.3 2012-09-11 21:20:47 cg Exp $' |
248 | 42 |
! |
43 |
||
44 |
version_SVN |
|
1095
87f223484bc3
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
613
diff
changeset
|
45 |
^ '§Id: MCClassTraitParser.st 5 2010-08-29 07:30:29Z vranyj1 §' |
248 | 46 |
! ! |