Class JSMethodInstructionVisitor

All Implemented Interfaces:
AstInstructionVisitor, JSInstructionVisitor, SSAInstruction.IVisitor

public class JSMethodInstructionVisitor extends JSAbstractInstructionVisitor
A JSAbstractInstructionVisitor that is used to only visit instructions of a single method.
Author:
mschaefer
  • Field Details

  • Constructor Details

  • Method Details

    • isFunctionConstructorInvoke

      protected boolean isFunctionConstructorInvoke(JavaScriptInvoke invk)
      Determine whether invk corresponds to a function declaration or function expression.

      TODO: A bit hackish. Is there a more principled way to do this?