qtil
advanced-security/qtil-javascript 0.0.3
Search

Predicate Routing::getRouteSetupNode

Gets the routing node corresponding to the route installed at the given route setup.

This is not generally the same as getNode(call), since the route setup method can return a value that does not correspond to the route that was just installed. Typically this occurs when the route setup method is chainable and returns the router itself.

Import path

import semmle.javascript.Routing
Node getRouteSetupNode(Node call)