com.google.dart.compiler.backend.js
Class JsRequiresSemiVisitor

java.lang.Object
  extended by JsVisitor
      extended by com.google.dart.compiler.backend.js.JsRequiresSemiVisitor

public class JsRequiresSemiVisitor
extends JsVisitor

Determines if a statement at the end of a block requires a semicolon.

For example, the following statements require semicolons:

The following do not require semicolons:


Method Summary
static boolean exec(JsStatement lastStatement)
           
 void visitFor(JsFor x)
           
 void visitForIn(JsForIn x)
           
 void visitIf(JsIf x)
           
 void visitLabel(JsLabel x)
           
 void visitWhile(JsWhile x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

exec

public static boolean exec(JsStatement lastStatement)

visitFor

public void visitFor(@NotNull
                     JsFor x)

visitForIn

public void visitForIn(@NotNull
                       JsForIn x)

visitIf

public void visitIf(@NotNull
                    JsIf x)

visitLabel

public void visitLabel(@NotNull
                       JsLabel x)

visitWhile

public void visitWhile(@NotNull
                       JsWhile x)