Package org.fife.rsta.ac.js.ast.parser
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 java.lang.Object implements org.mozilla.javascript.ast.NodeVisitor
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayList<org.mozilla.javascript.ast.ReturnStatement>returnStatements
-
Constructor Summary
Constructors Modifier Constructor Description privateFunctionReturnVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeDeclarationgetCommonReturnType()Iterate through all the return types and check they are all the same, otherwise return no typebooleanvisit(org.mozilla.javascript.ast.AstNode node)
-
-
-
Method Detail
-
visit
public boolean visit(org.mozilla.javascript.ast.AstNode node)
- Specified by:
visitin interfaceorg.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:
-
-