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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIterate through all the return types and check they are all the same, otherwise return no typebooleanvisit(org.mozilla.javascript.ast.AstNode node)
-
Field Details
-
returnStatements
-
-
Constructor Details
-
FunctionReturnVisitor
private FunctionReturnVisitor()
-
-
Method Details
-
visit
public boolean visit(org.mozilla.javascript.ast.AstNode node) - Specified by:
visitin interfaceorg.mozilla.javascript.ast.NodeVisitor
-
getCommonReturnType
Iterate through all the return types and check they are all the same, otherwise return no type- Returns:
-