CodeGeneratorTool.st
branchjv
changeset 16408 bc62fb9a8df6
parent 16369 1090224cc0db
parent 16392 b85002e0a390
child 16445 6bc184e74f9c
--- a/CodeGeneratorTool.st	Tue May 03 06:42:52 2016 +0200
+++ b/CodeGeneratorTool.st	Wed May 04 06:51:10 2016 +0200
@@ -1727,6 +1727,8 @@
          So, use proper compiler for language the receiver is generator for,
          i.e., Compiler for SmalltalkCodeGenerator, JavaScriptCompiler for
          JavaScriptCodeGenerator..."
+
+        "/ this is not the real compilation - but a prescan for the selector
         compiler := self compilerClass new.
         compiler parseMethod:theCode in:aClass ignoreErrors:true ignoreWarnings:true.
 
@@ -1748,6 +1750,7 @@
     ].
 
     change := InteractiveAddMethodChange compile:(theCode asString) in:aClass classified:category.
+    change controller:(CompilationErrorHandlerQuery query).
 
     "/ if collecting, add to changes (to be executed as one change at the end,
     "/ in order to have only one change in the undo-list (instead of many)