diff options
Diffstat (limited to 'chapter20')
| -rw-r--r-- | chapter20/Makefile | 2 | ||||
| -rw-r--r-- | chapter20/src/main/java/com/seaofnodes/simple/print/JSViewer.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chapter20/Makefile b/chapter20/Makefile index f96cfea3..c5d8fa71 100644 --- a/chapter20/Makefile +++ b/chapter20/Makefile @@ -87,7 +87,7 @@ build/release/simple.jar: $(main_classes) $(test_classes) # Launch viewer view: $(main_classes) @echo "viewing " - @$(JVM) com.seaofnodes.simple.JSViewer + @$(JVM) com.seaofnodes.simple.print.JSViewer .PHONY: clean clean: diff --git a/chapter20/src/main/java/com/seaofnodes/simple/print/JSViewer.java b/chapter20/src/main/java/com/seaofnodes/simple/print/JSViewer.java index 76c64c71..a2b674c9 100644 --- a/chapter20/src/main/java/com/seaofnodes/simple/print/JSViewer.java +++ b/chapter20/src/main/java/com/seaofnodes/simple/print/JSViewer.java @@ -72,7 +72,7 @@ public class JSViewer implements AutoCloseable { public static void show() { if( SERVER!=null && SHOW ) _show(); } private static void _show() { // Skip util we at least get the Parse object made - if( CODE._phase==null || CODE._phase.ordinal() < CodeGen.Phase.Parse.ordinal() ) + if( CODE._phase == null ) return; boolean midParse = CODE._phase == CodeGen.Phase.Parse; Stack<ScopeNode> xScopes = midParse ? CODE.P._xScopes : null; |
