>>68
#linesOfCode のソースはこんな感じ。コメントは含むが空行は除く。

CompiledMethod >> linesOfCode
 "An approximate measure of lines of code.
 Includes comments, but excludes empty lines."
 | lines |
 lines := 0.
 self getSource asString lineIndicesDo: [:start :endWithoutDelimiters :end |
  endWithoutDelimiters > start ifTrue: [lines := lines+1]].
 ^lines