[Pkg] The Trunk: Compiler-nice.256.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Feb 25 21:49:44 UTC 2013

Nicolas Cellier uploaded a new version of Compiler to project The Trunk:

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

Name: Compiler-nice.256
Author: nice
Time: 25 February 2013, 10:49:12.747 pm
UUID: f3619127-599b-4b0e-864b-9508047d84cf
Ancestors: Compiler-nice.255

Continue cleaning of Compiler by removing now unused instance variables.
Also remove CompilationCue>>sourceStream which is unused.

=============== Diff against Compiler-nice.255 ===============

Item was removed:
- ----- Method: CompilationCue>>sourceStream (in category 'accessing') -----
- sourceStream
- 	^ source readStream!

Item was changed:
  Object subclass: #Compiler
+ 	instanceVariableNames: 'sourceStream parser cue'
- 	instanceVariableNames: 'sourceStream requestor class category context parser cue'
  	classVariableNames: ''
  	poolDictionaries: ''
  	category: 'Compiler-Kernel'!
  !Compiler commentStamp: 'cwp 12/26/2012 23:17' prior: 0!
  The compiler accepts Smalltalk source code and compiles it with respect to a given class. The user of the compiler supplies a context so that temporary variables are accessible during compilation. If there is an error, a requestor (usually a kind of StringHolderController) is sent the message notify:at:in: so that the error message can be displayed. If there is no error, then the result of compilation is a MethodNode, which is the root of a parse tree whose nodes are kinds of ParseNodes. The parse tree can be sent messages to (1) generate code for a CompiledMethod (this is done for compiling methods or evaluating expressions); (2) pretty-print the code (for formatting); or (3) produce a map from object code back to source code (used by debugger program-counter selection). See also Parser, Encoder, ParseNode.!

Item was changed:
  ----- Method: Compiler>>setCue: (in category 'private') -----
  setCue: aCue
+ 	cue := aCue!
- 	cue := aCue.
- 	"Set legacy instance variables for methods that don't use cue yet."
- 	requestor := cue requestor.
- 	class := cue getClass.
- 	category := cue category.
- 	context := cue context.!

More information about the Packages mailing list