Class JavaScriptAstParser.FunctionReturnVisitor

java.lang.Object
org.fife.rsta.ac.js.ast.parser.JavaScriptAstParser.FunctionReturnVisitor
All Implemented Interfaces:
org.mozilla.javascript.ast.NodeVisitor
Enclosing class:
JavaScriptAstParser

private class JavaScriptAstParser.FunctionReturnVisitor extends Object implements org.mozilla.javascript.ast.NodeVisitor
  • Field Details

    • returnStatements

      private ArrayList<org.mozilla.javascript.ast.ReturnStatement> returnStatements
  • Constructor Details

    • FunctionReturnVisitor

      private FunctionReturnVisitor()
  • Method Details

    • visit

      public boolean visit(org.mozilla.javascript.ast.AstNode node)
      Specified by:
      visit in interface org.mozilla.javascript.ast.NodeVisitor
    • getCommonReturnType

      public TypeDeclaration getCommonReturnType()
      Iterate through all the return types and check they are all the same, otherwise return no type
      Returns: