[squeak-dev] The Trunk: PackageInfo-Base-bp.41.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Feb 27 22:21:01 UTC 2010

Andreas Raab uploaded a new version of PackageInfo-Base to project The Trunk:

==================== Summary ====================

Name: PackageInfo-Base-bp.41
Author: bp
Time: 26 February 2010, 9:20:43.017 pm
UUID: 00591888-2451-4524-916c-ed8a53bc485e
Ancestors: PackageInfo-Base-bp.40

Added linesOfCode for a package. Useful for estimating the size of a package.

=============== Diff against PackageInfo-Base-bp.40 ===============

Item was added:
+ ----- Method: PackageInfo>>linesOfCode (in category 'source code management') -----
+ linesOfCode
+ 	"An approximate measure of lines of code.
+ 	Includes comments, but excludes blank lines."
+ 	^self methods inject: 0 into: [:sum :each | sum + each compiledMethod linesOfCode]!

More information about the Squeak-dev mailing list