- isHandlerFunction
- handleReturnStmt
- handleNextCallExpression
- handleGenericFnCallExpression
- handleFnCallExpression
- handleIfStatement
- handleBlockStatements
- handleFunctionDeclaration
- handleReturnStatement
Flag if the handler does not call next()
in a Restify handler
Meta
- author: Rajat Kumar
This function checks if the current AST node is a valid sinatra style handler function
node
Object is the AST node
Returns boolean
This function checks if the current node is a return statement and looks for any call for next() inside it. Returns true if we find a valid call expression
node
Object is the AST node
Returns boolean
This function checks if the current node is next()
statement
Returns true if we find a
valid next()
expression
node
Object is the AST node
Returns boolean
This function checks if the current node is a generalized function statement which is an execution call and looks for any call for next() inside it. Returns true if we find a valid call expression
node
Object is the AST node
Returns boolean
This function checks if the current node is an expression statement and has an execution call expression and looks for any call for next() inside it. Returns true if we find a valid call expression
node
Object is the AST node
Returns boolean
This function checks if the current node is an IF Statement and looks for any call for next() inside it. Returns true if we find a valid call expression
node
Object is the AST node
Returns boolean
This function handles a block of statements looks for any call for next() inside it. Returns true if we find a valid call expression
node
Object is the AST node
Returns boolean
This function checks if the current node is a function declaration
looks for any call for next() inside it.
Reports if we found any next()
call or not
node
Object is the AST node
Returns void
This function checks if the current node is a Return statement
that returns a restify handler function and then
looks for any call for next() inside it.
Reports if we found any next()
call or not
node
Object is the AST node
Returns void