Ryan Macnak avatar Ryan Macnak committed d9f3c51

Remove some excessive initialization to nil.

Comments (0)

Files changed (2)


 	initHdr selector: (initializerSelectorNameFor: initHdr selector).	
 	subs:: subInitializersFor: aNode. (* compute (empty) subinitializers *)
-	slots:: aNode slots collect:[:slot <SlotDefAST> |
+	slots:: (aNode slots reject: [:slot | slot initializer isNil]) collect:[:slot <SlotDefAST> |
 		| aMsg <MessageAST> slotInitializer <ExpressionAST> |
 		slotInitializer:: slot initializer apply: copier.
 		aNode isSeq ifFalse: [slotInitializer:: futureFor: slotInitializer].


 				ifFalse: [am first start].
                  init isNil ifTrue:[ end:: sd end. 
 							slotClass:: MutableSlotDefAST. 
-							msg:: MessageAST new send: #nil
+							(*msg:: MessageAST new send: #nil
                                                                         with: OrderedCollection new;
                                                                         start: sd start; end: sd end.
-                                 		expr:: hereSendFromMsg: msg.    
+                                 		expr:: hereSendFromMsg: msg.  *)
                               ifFalse:[end:: init last concreteEnd. 
 	                                     expr:: init at: 2. 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.