CodeGeneratorTool.st
changeset 16392 b85002e0a390
parent 16356 52d397cec7b9
child 16408 bc62fb9a8df6
child 16429 6c37ed85b725
--- a/CodeGeneratorTool.st	Tue May 03 15:52:21 2016 +0200
+++ b/CodeGeneratorTool.st	Tue May 03 18:03:37 2016 +0200
@@ -1721,6 +1721,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.
 
@@ -1742,6 +1744,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)