[Pkg] The Trunk: ST80-nice.126.mcz
commits at source.squeak.org
commits at source.squeak.org
Wed Mar 30 19:35:50 UTC 2011
Nicolas Cellier uploaded a new version of ST80 to project The Trunk:
http://source.squeak.org/trunk/ST80-nice.126.mcz
==================== Summary ====================
Name: ST80-nice.126
Author: nice
Time: 30 March 2011, 9:34:56.706 pm
UUID: 5c20c89b-78d2-468c-9679-6d50ae37b2d1
Ancestors: ST80-dtl.125
Use #newParser
=============== Diff against ST80-dtl.125 ===============
Item was changed:
----- Method: ParagraphEditor>>explainTemp: (in category 'explain') -----
explainTemp: string
"Is string the name of a temporary variable (method or block argument or temporary)?"
| selectedClass methodNode tempNode |
(model respondsTo: #selectedMessageName) ifFalse: [^ nil].
model selectedMessageName ifNil: [^nil]. "not in a method"
selectedClass := model selectedClassOrMetaClass.
+ methodNode := selectedClass newParser parse: model selectedMessage class: selectedClass.
- methodNode := selectedClass parserClass new parse: model selectedMessage class: selectedClass.
tempNode := methodNode encoder tempNodes detect: [:n| n name = string] ifNone: [^nil].
^(tempNode isArg
ifTrue: ['"is an argument to this ']
ifFalse: ['"is a temporary variable in this ']),
(tempNode isDeclaredAtMethodLevel
ifTrue: ['method"']
ifFalse: ['block"'])!
More information about the Packages
mailing list