To be able to implement autocompletion of various Javascript features (for example this.$.), we need an equivalent of the traversal of the HTML AST, but then for a Javascript AST.
Usage of this traversal will probably to first invoke getLocationInfoForPosition for the HTML AST. If the return is scriptTagContents, retrieve the AST of the Node and invoke the second function which traverses the AST.
To be able to implement autocompletion of various Javascript features (for example
this.$.), we need an equivalent of the traversal of the HTML AST, but then for a Javascript AST.Usage of this traversal will probably to first invoke
getLocationInfoForPositionfor the HTML AST. If the return isscriptTagContents, retrieve the AST of the Node and invoke the second function which traverses the AST.